Add missing filter, fix verbose logging not appearing

This commit is contained in:
Noi 2020-10-05 16:09:14 -07:00
parent fc9d611ba6
commit 2da4f3e0e3

View file

@ -101,12 +101,13 @@ namespace BirthdayBot
case "Connected":
case "Ready":
case "Failed to resume previous session":
case "Resumed previous session":
case "Disconnecting":
case "Disconnected":
return Task.CompletedTask;
}
if (arg.Severity <= LogSeverity.Info) Log("Discord.Net", $"{arg.Severity}: {arg.Message}");
Log("Discord.Net", $"{arg.Severity}: {arg.Message}");
if (arg.Exception != null) Log("Discord.Net", arg.Exception.ToString());
return Task.CompletedTask;