Skip to content

Allow getting the debug_level #14

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

Closed
kirk-clendinning opened this issue Jul 29, 2021 · 3 comments · Fixed by #24
Closed

Allow getting the debug_level #14

kirk-clendinning opened this issue Jul 29, 2021 · 3 comments · Fixed by #24
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@kirk-clendinning
Copy link

kirk-clendinning commented Jul 29, 2021

It would be nice for the Debug Utils to be orthogonal so that once a debug level is set, functionality in other parts of the code can be enabled or disabled programmatically.

Add int getDebugMessageLevel(void); and int getDebugLevel(void); to Arduino_DebugUtils.h, complimenting the setDebugMessageLevel() and setDebugLevel() functions.

Add

int getDebugMessageLevel(void) {
  return Debug.getDebugLevel();
}

to Arduino_DebugUtils.cpp

@per1234 per1234 added the type: enhancement Proposed improvement label Jul 29, 2021
@aentinger
Copy link
Contributor

Hi @kirk-clendinning 👋 Can you please create a PR?

@kirk-clendinning
Copy link
Author

kirk-clendinning commented Aug 24, 2021 via email

@aentinger
Copy link
Contributor

Sure 😉

aentinger added a commit that referenced this issue Jun 22, 2022
aentinger added a commit that referenced this issue Jun 22, 2022
@per1234 per1234 added conclusion: resolved Issue was resolved topic: code Related to content of the project itself labels Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: resolved Issue was resolved topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants