drivers/upsdrvctl: add "-d" option to pass current debug level from upsdrvctl to drivers#1287
Merged
jimklimov merged 3 commits intonetworkupstools:masterfrom Feb 16, 2022
Merged
Conversation
90a39aa to
10619ae
Compare
Closes: networkupstools#1036 (Note: that issue discusses other possible improvements around this subject, which are synergetic with this one)
10619ae to
3718f46
Compare
Member
Author
|
Tested for debug levels above and under a limit for the argument length (8 in the test, SMALLBUF=512 in PR): Small values are ok, not expanded to top-verbosity logging :) Truncation to fit in 8-char arg, reported in No logging is passed-through without Not much logging by default: |
…ual drivers if (nut_debug_level_passthrough == 0)
…g through to actual drivers
This was referenced Feb 15, 2022
This was referenced Jan 2, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #1036
(Note: that issue discusses other possible improvements around this subject, which are synergetic with this one and posted as separate issues and PRs)