Skip to content
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

Upgrade log level to Error when losing connection to L1 for too long #1783

Merged
merged 5 commits into from
Sep 28, 2023

Conversation

ganeshvanahalli
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Jul 24, 2023
Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

"l1Timestamp", l1Timetamp, "age", headerTime,
)
// Upgrade the log level from warn to error when losing connection to L1 for too long
if headerTime >= DefaultConfig.OldHeaderTimeout {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DefaultConfig.OldHeaderTimeout defaults to 5 minutes and s.config().OldHeaderTimeout is almost always the default, so no need to do if/else. Only change needed is go from Warn to Error

@joshuacolvin0 joshuacolvin0 merged commit 55da7ba into master Sep 28, 2023
7 checks passed
@joshuacolvin0 joshuacolvin0 deleted the log-connection-error branch September 28, 2023 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants