-
Notifications
You must be signed in to change notification settings - Fork 267
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
WIP: Do not compare verbosity level when passing value along. #357
base: master
Are you sure you want to change the base?
Conversation
Thanks to point this error. |
I have pushed a serie of commit to fix verbose aspect. |
Thanks! I now see the I saw someplace in the code a The level comparisons may be easier to follow if they compare with |
In fact I have used level 3 because this piece of code may produces a real flood. I'm agree this is undocumented (maybe have to add something like 3 -> flood). |
It is other messages than the Would it make sense if |
|
Is there a way for a user to set the verbosity of various components separately? Even with that, if something is not working, a user likely would not know which component may be giving the problem, so would likely just like to try to gradually turn a global verbosity level up in the hope of getting a message that might give a hint. Repeated With a global verbosity level, it need not be passed around to the various components. Each message location can decide if printing the message is desired. And where needed, perhaps protect the message generation. But typically, the CPU overhead of such comparisons should be negligible. |
|
I was not able to see the
display()
messageFTDIpp_MPSSE::open_device
(src/ftdipp_mpsse.cpp
), even with e.g.--verbose-level 4
. As far as I could tell, this is due to the user-given verbosity level being compared with fixed levels several times as it is passed to theFTDIpp_MPSSE
constructor.It is unclear why I had to remove both comparisons to see the
display()
message. So the PR is more to easily point at the locations in the code, and not for direct use. It is not much tested.