Various error log improvements #100

Open
l1s5 wants to merge 6 commits from l1s5/out-of-your-element:log-improvements into main

6 commits

Author SHA1 Message Date
2a34e797c3
Make discord client log disconnections and errors outside CONNECTION_DEBUG
These logs are useful in production environments, when investigating
unexpected downtime and incidents.
2026-10-26 21:21:05 +09:00
d5972187eb
Log d2m retrigger timeouts 2026-10-26 21:21:04 +09:00
8e9458d41c
Log failed m2d error reports
Whenever `sendError` fails (the function responsible for sending reports
about failed m2d bridging back to the matrix room), the error was
silently dropped. We now log it as an error to the console.
2026-10-26 21:21:03 +09:00
e505bfae82
Render error messages in a single log statement
Getting 2 log events for every error made them a bit hard to both read
and query for in a log ingester.
2026-10-26 21:21:02 +09:00
023432cc11
start: add process-wide rejection handler with error logger
Note that this also means that unhandled rejections now longer crashes
the program, it just logs the error and continues as usual.
2026-10-26 21:13:35 +09:00
3f6f02240e
Add error-logging rejection handlers for discord client 2026-10-26 21:09:45 +09:00