Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Log exceptions as errors, not information
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Mar 13, 2022
1 parent 1e0d930 commit 8749830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrackeysBot/Plugins/SimplePluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public IReadOnlyList<IPlugin> LoadPlugins()
}

plugin?.Dispose();
Logger.Info(exception, string.Format(LoggerMessages.ExceptionWhenLoadingPlugin, pluginName));
Logger.Error(exception, string.Format(LoggerMessages.ExceptionWhenLoadingPlugin, pluginName));
}
}

Expand All @@ -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();
Expand Down

0 comments on commit 8749830

Please sign in to comment.