aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2025-12-07 00:17:24 +0000
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2025-12-07 00:17:24 +0000
commit1f98acd90622a66f0ec4a88f5c0c60c8a1cdd332 (patch)
treea4cefff5788f04a459365dfb29d99310630b61b9 /src
parent1d09aef10a03fb4263a0e312c979d5a153fc9b31 (diff)
downloadslskd-1f98acd90622a66f0ec4a88f5c0c60c8a1cdd332.tar.gz
Use Warning log level instead of Fatal for Mutex creation failures
Co-authored-by: jpdillingham <17145758+jpdillingham@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 29783216..098cc324 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -347,13 +347,13 @@ namespace slskd
}
catch (IOException ex)
{
- Log.Fatal($"Failed to acquire the application singleton mutex: {ex.Message}");
+ Log.Warning($"Failed to acquire the application singleton mutex: {ex.Message}");
Log.Warning("This can happen when running in a restricted environment (e.g., Kubernetes with readOnlyRootFilesystem)");
Log.Warning("The application will continue, but multiple instances may be able to run simultaneously");
}
catch (UnauthorizedAccessException ex)
{
- Log.Fatal($"Failed to acquire the application singleton mutex: {ex.Message}");
+ Log.Warning($"Failed to acquire the application singleton mutex: {ex.Message}");
Log.Warning("This can happen when running with insufficient permissions");
Log.Warning("The application will continue, but multiple instances may be able to run simultaneously");
}