From 1f98acd90622a66f0ec4a88f5c0c60c8a1cdd332 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 7 Dec 2025 00:17:24 +0000 Subject: Use Warning log level instead of Fatal for Mutex creation failures Co-authored-by: jpdillingham <17145758+jpdillingham@users.noreply.github.com> --- src/slskd/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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"); } -- cgit v1.2.3