aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-06-30 09:43:48 -0500
committerJP Dillingham <jp@dillingham.me>2023-06-30 09:43:48 -0500
commit686b2aa091aab7f4ec185aa03901e37c553ea1f6 (patch)
tree1ab23d70d0b090157a80aea39efe6d596cd3c87b /src
parent26786311ffc3a01bdd15158fe0c03bb58d8391ec (diff)
downloadslskd-686b2aa091aab7f4ec185aa03901e37c553ea1f6.tar.gz
adjust logging
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs2
-rw-r--r--src/slskd/Program.cs3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 48406931..32eb6cb7 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -280,6 +280,8 @@ namespace slskd
async Task IHostedService.StartAsync(CancellationToken cancellationToken)
{
+ Log.Information("Application started");
+
// if the application shut down "uncleanly", transfers may need to be cleaned up. we deliberately don't allow these
// records to be updated if the application has started to shut down so that we can do this cleanup and properly
// disposition them as having failed due to an application shutdown, instead of some random exception thrown while
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 060284d8..418a29c2 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -397,6 +397,8 @@ namespace slskd
Log.Information("Invocation ID: {InvocationId}", InvocationId);
Log.Information("Instance Name: {InstanceName}", OptionsAtStartup.InstanceName);
+ Log.Information("Configuring application...");
+
// SQLite must have specific capabilities to function properly. this shouldn't be a concern for shrinkwrapped
// binaries or in Docker, but if someone builds from source weird things can happen.
InitSQLiteOrFailFast();
@@ -465,6 +467,7 @@ namespace slskd
return;
}
+ Log.Information("Configuration complete. Starting application...");
app.Run();
}
catch (Exception ex)