Skip to content

Commit

Permalink
Add JDA Version to Websocket errors (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 committed Aug 13, 2021
1 parent d53cac9 commit d6eeeaa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -959,12 +959,13 @@ protected void onDispatch(DataObject raw)
}
catch (ParsingException ex)
{
LOG.warn("Got an unexpected Json-parse error. Please redirect following message to the devs:\n\t{}\n\t{} -> {}",
ex.getMessage(), type, content, ex);
LOG.warn("Got an unexpected Json-parse error. Please redirect the following message to the devs:\n\tJDA {}\n\t{}\n\t{} -> {}",
JDAInfo.VERSION, ex.getMessage(), type, content, ex);
}
catch (Exception ex)
{
LOG.error("Got an unexpected error. Please redirect following message to the devs:\n\t{} -> {}", type, content, ex);
LOG.error("Got an unexpected error. Please redirect the following message to the devs:\n\tJDA {}\n\t{} -> {}",
JDAInfo.VERSION, type, content, ex);
}

if (responseTotal % EventCache.TIMEOUT_AMOUNT == 0)
Expand Down

0 comments on commit d6eeeaa

Please sign in to comment.