mirror of
https://github.com/RPCS3/discord-bot.git
synced 2026-01-31 01:25:22 +01:00
only log errors from the bot logger
This commit is contained in:
@@ -277,7 +277,7 @@ internal static class Config
|
||||
};
|
||||
watchdogTarget.Parameters.AddRange([new MethodCallParameter("${level}"), new("${message}")]);
|
||||
#if DEBUG
|
||||
loggingConfig.AddRule(LogLevel.Debug, LogLevel.Fatal, consoleTarget);
|
||||
loggingConfig.AddRule(LogLevel.Error, LogLevel.Fatal, consoleTarget);
|
||||
loggingConfig.AddRule(LogLevel.Trace, LogLevel.Fatal, consoleTarget, "default"); // echo all messages from default logger to the console
|
||||
#else
|
||||
loggingConfig.AddRule(LogLevel.Info, LogLevel.Fatal, consoleTarget, "default");
|
||||
|
||||
Reference in New Issue
Block a user