KockaAdmiralac / KockaLogger

Parses IRC logs of activity across Fandom, then relays it into a Discord channel, searches for spam/vandalism and more.
GNU General Public License v3.0
8 stars 9 forks source link

Logger reporting to Discord causes fatal errors in KockaLogger #59

Open KockaAdmiralac opened 1 year ago

KockaAdmiralac commented 1 year ago

Description

The logger's logging methods are technically asynchronous, but no component of the system calls them as such. This means Discord backend errors can cause KockaLogger to crash due to uncaught promise rejections.

Reproduction steps

Steps to reproduce the behavior:

  1. Wait for Discord backend to get unstable
  2. Get KockaLogger to report an error at that time
  3. See how it crashes and restarts

Expected behavior

It doesn't crash.