From 87498300a52b57f95cf374f2655aacfdadab7009 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sun, 13 Mar 2022 13:32:21 +0000 Subject: [PATCH] Log exceptions as errors, not information --- BrackeysBot/Plugins/SimplePluginManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BrackeysBot/Plugins/SimplePluginManager.cs b/BrackeysBot/Plugins/SimplePluginManager.cs index bc14728..f632df3 100644 --- a/BrackeysBot/Plugins/SimplePluginManager.cs +++ b/BrackeysBot/Plugins/SimplePluginManager.cs @@ -326,7 +326,7 @@ public IReadOnlyList LoadPlugins() } plugin?.Dispose(); - Logger.Info(exception, string.Format(LoggerMessages.ExceptionWhenLoadingPlugin, pluginName)); + Logger.Error(exception, string.Format(LoggerMessages.ExceptionWhenLoadingPlugin, pluginName)); } } @@ -346,7 +346,7 @@ public void UnloadPlugin(IPlugin plugin) } catch (Exception exception) { - Logger.Info(exception, string.Format(LoggerMessages.ExceptionWhenUnloadingPlugin, plugin.PluginInfo.Name)); + Logger.Error(exception, string.Format(LoggerMessages.ExceptionWhenUnloadingPlugin, plugin.PluginInfo.Name)); } monoPlugin.DiscordClient?.Dispose();