-
Notifications
You must be signed in to change notification settings - Fork 0
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: replace info-level logs with debug #116
Conversation
packages/indexer-api/src/main.ts
Outdated
@@ -28,8 +28,9 @@ async function initializeRedis( | |||
|
|||
redis.on("error", (err) => { | |||
logger.error({ | |||
at: "Indexer-API", | |||
at: "IndexerAPI", |
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.
We may want to specify what the function is. I.e. IndexerAPI#main
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.
Done here b59aa5c
message: "No executed bundles found", | ||
at: "resolveMostRecentProposedAndExecutedBundles", | ||
notificationPath: "across-indexer-error", |
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.
ooc what is a notificationPath
in this case?
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.
This is the key we use to send Slack messages to a specific channel.
Its value has to be part of the escalationPathWebhookUrls
object in the SLACK_CONFIG env var.
Here's our config: https://github.com/UMAprotocol/zion/pull/429/files
We'll have a default channel for info and warns, and other channel just for errors
In order to use UMA's logger to send logs to slack, we should reduce the number of info logs in the indexer.
This PR:
Zion PR to config slack channels: https://github.com/UMAprotocol/zion/pull/429