From 4495962fb28a0c6d5e4e063bd9d599aab480b0a0 Mon Sep 17 00:00:00 2001 From: Jason Dove Date: Sun, 14 Feb 2021 05:18:26 -0600 Subject: [PATCH] add version to startup logs --- ErsatzTV/Startup.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ErsatzTV/Startup.cs b/ErsatzTV/Startup.cs index 212a89df7..eea3a74ff 100644 --- a/ErsatzTV/Startup.cs +++ b/ErsatzTV/Startup.cs @@ -1,5 +1,6 @@ using System; using System.IO; +using System.Reflection; using System.Threading.Channels; using ErsatzTV.Application; using ErsatzTV.Application.Channels.Queries; @@ -77,6 +78,11 @@ namespace ErsatzTV services.AddMudServices(); + Log.Logger.Information( + "ErsatzTV version {Version}", + Assembly.GetEntryAssembly().GetCustomAttribute() + ?.InformationalVersion ?? "unknown"); + Log.Logger.Warning("This is pre-alpha software and is likely to be unstable"); Log.Logger.Warning( "Give feedback at {GitHub} or {Discord}",