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

Downgrade spammy log messages #1609

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Downgrade spammy log messages #1609

merged 2 commits into from
Oct 17, 2023

Conversation

BedrockSquirrel
Copy link
Collaborator

Why this change is needed

To reduce our datadog log volume these non-critical messages can be downgraded to debug.

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

@coderabbitai
Copy link

coderabbitai bot commented Oct 17, 2023

Walkthrough

This pull request primarily focuses on enhancing logging for better tracking and debugging, and updating a network configuration for a test case. The changes involve adding a debug log message in the batch production process, refining a log message and comment in the Guardian struct, and switching the testnet used in a network availability test.

Changes

File Summary
.../nodetype/sequencer.go Added a debug log message when skipping batch production due to an empty batch.
.../enclave/guardian.go Updated the log message and comment in the submitL1Block function to better reflect the current state of the enclave.
.../availability_test.go Switched the network configuration from DevTestnet to SepoliaTestnet for network availability testing.

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.
  • Additionally, enter @coderabbitai pause to halt the bot's ongoing reviews as any issue or review comment. To
    resume reviews, enter @coderabbitai resume as any issue or review comment.

@@ -21,7 +21,7 @@ func TestNetworkAvailability(t *testing.T) {
networktest.Run(
"network-availability",
t,
env.DevTestnet(),
env.SepoliaTestnet(),
Copy link
Contributor

Choose a reason for hiding this comment

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

We also want to change this ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

haha oops, thanks

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 94d12bd and 10cf4e0.
Files selected for processing (3)
  • go/enclave/nodetype/sequencer.go (1 hunks)
  • go/host/enclave/guardian.go (1 hunks)
  • integration/networktest/tests/helpful/availability_test.go (1 hunks)
Files skipped from review due to trivial changes (2)
  • go/enclave/nodetype/sequencer.go
  • go/host/enclave/guardian.go
Additional comments (Suppressed): 1
integration/networktest/tests/helpful/availability_test.go (1)
  • 24-24: The network configuration for the test has been changed from env.DevTestnet() to env.SepoliaTestnet(). Ensure that the Sepolia testnet is available and properly configured for this test. Also, verify that this change doesn't affect other tests or parts of the system that rely on the results of this test.

@BedrockSquirrel BedrockSquirrel merged commit b5722cd into main Oct 17, 2023
2 checks passed
@BedrockSquirrel BedrockSquirrel deleted the matt/reduce-spammy-logs branch October 17, 2023 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants