Skip to content

Commit 9149867

Browse files
committed
Specifically scope the lack of logging to ones sending to "errors"
1 parent bb72a82 commit 9149867

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Helpers/LogChannelHelper.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,11 @@ public static async Task<DiscordMessage> LogMessageAsync(string key, DiscordMess
126126
}
127127
catch (Exception ex)
128128
{
129-
Program.discord.Logger.LogError(Program.LogChannelErrorID, ex, "Error ocurred trying to send message to key {key}", key);
129+
EventId eventId = Program.CliptokEventID;
130+
if (key == "errors")
131+
eventId = Program.LogChannelErrorID;
132+
133+
Program.discord.Logger.LogError(eventId, ex, "Error ocurred trying to send message to key {key}", key);
130134
return null;
131135
}
132136
}

0 commit comments

Comments
 (0)