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

Fix bug that was blocking debug logs #262

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Fix bug that was blocking debug logs #262

merged 1 commit into from
Jun 5, 2024

Conversation

nolancon
Copy link
Collaborator

@nolancon nolancon commented May 31, 2024

Description of your changes

Previously we were overwriting the zap-log-level value to 0 (info) even when zap-devel was set - in which case zap-log-level should be -1 (debug)

I have:

  • Run make reviewable to ensure this PR is ready for review.
  • Run make ceph-chainsaw to validate these changes against Ceph. This step is not always necessary. However, for changes related to S3 calls it is sensible to validate against an actual Ceph cluster. Localstack is used in our CI Chainsaw suite for convenience and there can be disparity in S3 behaviours betwee it and Ceph. See docs/TESTING.md for information on how to run tests against a Ceph cluster.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Manually checked that the zap-devel flag prints Debug logs when set, and defaults to Info logs when not set.

@nolancon nolancon marked this pull request as ready for review May 31, 2024 17:05
@nolancon nolancon requested review from mhmxs and Shunpoco May 31, 2024 17:08
Copy link
Contributor

@mhmxs mhmxs left a comment

Choose a reason for hiding this comment

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

Nice catch

@nolancon nolancon merged commit da5c30c into main Jun 5, 2024
10 checks passed
@nolancon nolancon deleted the debug-flag branch June 5, 2024 08:41
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