From 686b2aa091aab7f4ec185aa03901e37c553ea1f6 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 30 Jun 2023 09:43:48 -0500 Subject: adjust logging --- src/slskd/Application.cs | 2 ++ src/slskd/Program.cs | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src') 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) -- cgit v1.2.3