Change verbosity to match log level #2264
Merged
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.
Changes verbosity numbers (0-4) to match new log levels (1-8).
We default to a new level of 4 (WARNING) and each
-v
options increases the level by 1 unchanged.The new level allow to distinguish between normal and abnormal state messages:
Note that we adopted the SoapySDR log levels but change CRITICAL to be a normal message.
We denote only FATAL, ERROR, and WARNING as abnormal. FATAL will terminate, ERROR indicates an important problem, and WARNING can likely be ignored.
This builds on #2263 and is preparation for #2254