aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-04-12 16:01:09 -0500
committerJP Dillingham <jp@dillingham.me>2025-04-12 16:01:09 -0500
commit66c60cadfa300d88f1b66d9e4d6174803b18c3ef (patch)
tree4084f3c9e90d4c0ab3b2c917aa9d7e092d021120 /src
parente3bb26aaad24e9cc914cc6c8f0d0575fc76b85ae (diff)
downloadslskd-66c60cadfa300d88f1b66d9e4d6174803b18c3ef.tar.gz
show Soulseek.NET diagnostic stack traces when debugging
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 9179987e..2449e8e0 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -830,6 +830,12 @@ namespace slskd
var logger = Loggers.GetOrAdd(source, Log.ForContext("Context", "Soulseek").ForContext("SubContext", source));
+ if (args.IncludesException && OptionsAtStartup.Debug)
+ {
+ logger.Write(TranslateLogLevel(args.Level), exception: args.Exception, "{@Message}", args.Message);
+ return;
+ }
+
logger.Write(TranslateLogLevel(args.Level), "{@Message}", args.Message);
}