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

refactor: Introduce LogAcceptDebug() which is LogAcceptCategory() with Debug level #6436

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Nov 28, 2024

Issue being fixed or feature implemented

#6399 introduced severity-based logging via b046e09. We use LogAcceptCategory() in quite a few places and it's always BCLog::Level::Debug so log level is kind of redundant for us and just makes it harder to read the code.

What was done?

Set log level in LogAcceptCategory() to BCLog::Level::Debug by default. Introduce LogAcceptDebug() which is LogAcceptCategory() with Debug level. Simplify corresponding Dash-specific code.

How Has This Been Tested?

Breaking Changes

n/a

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation
  • I have assigned this pull request to a milestone (for repository code-owners and collaborators only)

@UdjinM6 UdjinM6 added this to the 22.1 milestone Nov 28, 2024
src/logging.h Outdated Show resolved Hide resolved
src/wallet/wallet.cpp Outdated Show resolved Hide resolved
@UdjinM6 UdjinM6 changed the title refactor: Set log level in LogAcceptCategory() to Debug by default refactor: Introduce LogAcceptDebug() which is LogAcceptCategory() with Debug level Nov 29, 2024
knst
knst previously approved these changes Nov 29, 2024
Copy link
Collaborator

@knst knst left a comment

Choose a reason for hiding this comment

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

utACK c62b35c

kwvg
kwvg previously approved these changes Dec 2, 2024
Copy link
Collaborator

@kwvg kwvg left a comment

Choose a reason for hiding this comment

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

utACK c62b35c

@UdjinM6
Copy link
Author

UdjinM6 commented Dec 2, 2024

NOTE: we should merge #6441 first to avoid backport conflicts (will rebase this PR later)

@PastaPastaPasta PastaPastaPasta marked this pull request as draft December 2, 2024 17:31
@PastaPastaPasta
Copy link
Member

Marked as draft so I don't merge

Copy link

github-actions bot commented Dec 3, 2024

This pull request has conflicts, please rebase.

@PastaPastaPasta PastaPastaPasta marked this pull request as ready for review December 4, 2024 17:13
@PastaPastaPasta
Copy link
Member

Range diff looks good; gonna merge

Copy link
Collaborator

@kwvg kwvg left a comment

Choose a reason for hiding this comment

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

utACK dfe86b4

@PastaPastaPasta PastaPastaPasta merged commit 65800cb into dashpay:develop Dec 6, 2024
19 checks passed
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.

4 participants