From a5543c60194c171955dd1689f606cc2cdb9ae2f7 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Tue, 19 Oct 2021 09:58:32 -0500 Subject: log canary warnings on start --- src/slskd/Program.cs | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 5280ab5a..cfc95013 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -78,6 +78,11 @@ namespace slskd /// public static readonly string EnvironmentVariablePrefix = $"{AppName.ToUpperInvariant()}_"; + /// + /// The url to the issues/support site. + /// + public static readonly string IssuesUrl = "https://github.com/slskd/slskd/issues"; + /// /// The default XML documentation filename. /// @@ -283,6 +288,14 @@ namespace slskd } logger.Information("Version: {Version}", Version); + + if (!IsCanary) + { + logger.Warning("This is a canary build"); + logger.Warning("Canary builds are considered UNSTABLE and may be completely BROKEN"); + logger.Warning($"Please report any issues here: {IssuesUrl}"); + } + logger.Information("Instance Name: {InstanceName}", OptionsAtStartup.InstanceName); logger.Information("Invocation ID: {InvocationId}", InvocationId); logger.Information("Process ID: {ProcessId}", ProcessId); @@ -522,8 +535,14 @@ namespace slskd │ GNU AFFERO GENERAL PUBLIC LICENSE │ │ https://slskd.org │ │ │ -│{centeredVersion}│ -└────────────────────────────────────────────────────────┘"; +│{centeredVersion}│"; + + if (!IsCanary) + { + banner += "\n│■■■■■■■■■■■■■■■■■■■■■■■► CANARY ◄■■■■■■■■■■■■■■■■■■■■■■■│"; + } + + banner += "\n└────────────────────────────────────────────────────────┘"; Console.WriteLine(banner); } -- cgit v1.2.3