Browse Source

add version to startup logs

pull/24/head
Jason Dove 6 years ago
parent
commit
4495962fb2
  1. 6
      ErsatzTV/Startup.cs

6
ErsatzTV/Startup.cs

@ -1,5 +1,6 @@ @@ -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 @@ -77,6 +78,11 @@ namespace ErsatzTV
services.AddMudServices();
Log.Logger.Information(
"ErsatzTV version {Version}",
Assembly.GetEntryAssembly().GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.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}",

Loading…
Cancel
Save