-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: proper logging for protocol health monitoring with Sentry #14072
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are several logger.js
files with duplicate code but as we discussed , it may be easier to have these for now than to introduce another package just to hold that bit of code.
relates to #13917 |
console.log(`${symbols[level] || ''}[${level}]: ${msg}`) | ||
|
||
// send to sentry | ||
if (process.env.SENTRY_DSN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logs will be sent to sentry only if SENTRY_DSN
is exported to the shell. Should document this maybe but not sure where ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's ok.
console.log(`${symbols[level] || ''}[${level}]: ${msg}`) | ||
|
||
// send to sentry | ||
if (process.env.SENTRY_DSN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's ok.
Description
This adds a more refined and useful way to log various protocol checks to Sentry (and then fwd them to discord etc)
Issues
Fixes #
Refs #
Checklist:
Release Note Draft Snippet