Closed brandoningli closed 2 years ago
Related bugs/feature requests
Describe the changes
Wraps Discord logging in a try/catch, then logs exceptions while sending to Discord webhook with a flag to not try to post to Discord.
Expected behavior
Any errors while logging to Discord should be non-fatal, and the stack trace should be logged to the other transports.
Screenshots
New npm dependencies
Testing Instructions
Not easily testable for the exact case we're worried about. What I did to make sure it should work as expected:
catch
try
Additional context
Related bugs/feature requests
Describe the changes
Wraps Discord logging in a try/catch, then logs exceptions while sending to Discord webhook with a flag to not try to post to Discord.
Expected behavior
Any errors while logging to Discord should be non-fatal, and the stack trace should be logged to the other transports.
Screenshots
New npm dependencies
Testing Instructions
Not easily testable for the exact case we're worried about. What I did to make sure it should work as expected:
catch
body to thetry
body (without trying to print the stack trace).Additional context