aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-10-19 09:58:32 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-10-19 09:58:32 -0500
commita5543c60194c171955dd1689f606cc2cdb9ae2f7 (patch)
tree279977b03eff2a8139eaa19f06d554f8af9cf0b4 /src/slskd/Program.cs
parent268a23d72ab7c3fbc5092ad6a77dd5ddb8e0452b (diff)
downloadslskd-a5543c60194c171955dd1689f606cc2cdb9ae2f7.tar.gz
log canary warnings on start
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs23
1 files changed, 21 insertions, 2 deletions
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
@@ -79,6 +79,11 @@ namespace slskd
public static readonly string EnvironmentVariablePrefix = $"{AppName.ToUpperInvariant()}_";
/// <summary>
+ /// The url to the issues/support site.
+ /// </summary>
+ public static readonly string IssuesUrl = "https://github.com/slskd/slskd/issues";
+
+ /// <summary>
/// The default XML documentation filename.
/// </summary>
public static readonly string XmlDocumentationFile = Path.Combine(AppContext.BaseDirectory, "etc", $"{AppName}.xml");
@@ -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);
}