Filter out a non-issue warning.
This commit is contained in:
parent
28c4cfadd6
commit
3f6d581c83
|
@ -72,10 +72,14 @@ public class DiscordBot
|
|||
{
|
||||
//as time goes on, we may encounter logged info that we literally don't care about. Fill out an if statement to properly
|
||||
//filter it out to avoid logging it to discord.
|
||||
//if (a.Message.StartsWith(""))
|
||||
//{
|
||||
// return;
|
||||
//}
|
||||
if (a.Message.Contains("Server requested a reconnect"))
|
||||
{
|
||||
//This is to filter out this message. This warning is for discord server load balancing and isn't a problem
|
||||
|
||||
//Warning[Discord: Gateway] Discord.WebSocket.GatewayReconnectException: Server requested a reconnect
|
||||
//Warning[Discord: Gateway] at Discord.ConnectionManager.<> c__DisplayClass29_0.<< StartAsync > b__0 > d.MoveNext()
|
||||
return;
|
||||
}
|
||||
string message = a.Message + (a.Exception != null ? "Exception: " + a.Exception.ToString() : "");
|
||||
ConsoleColor col;
|
||||
switch (a.Severity)
|
||||
|
|
Loading…
Reference in New Issue