Skip to content

Commit

Permalink
Do not flood warns about unknown events at monitoring state
Browse files Browse the repository at this point in the history
  • Loading branch information
Brikster committed Jul 7, 2024
1 parent 32c96c0 commit a2858f1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ public void handleFinishedEarlyContextEvent(AsyncPlayerChatEvent event) {

MessageContext<String> earlyContext = pendingMessages.remove(eventHashcode);
if (earlyContext == null) {
logger.log(Level.WARNING, "Cannot handle chat event from {0} with format {1} and message {2} due to hashcode idempotency error",
new Object[] { event.getPlayer().getName(), event.getFormat(), event.getMessage() });
if (settings.isDebug()) {
logger.log(Level.WARNING, "Cannot handle unprocessed chat event from \"{0}\" with format \"{1}\" and message \"{2}\"",
new Object[]{event.getPlayer().getName(), event.getFormat(), event.getMessage()});
}
return;
}

Expand Down

0 comments on commit a2858f1

Please sign in to comment.