-
Notifications
You must be signed in to change notification settings - Fork 17
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
Getting some extra debug output from v0.4.1 #24
Comments
The new version automatically maps from gphoto2 logging levels to the corresponding Python logging levels: https://github.com/jbaiter/gphoto2-cffi/blob/master/gphoto2cffi/backend.py#L45, https://github.com/jbaiter/gphoto2-cffi/blob/master/gphoto2cffi/backend.py#L75 |
My preference would be to have logging off by default. Then let the user enable/disable it. Would it be possible to add some module level variable in If that seems okay to you, I can test it out and submit a PR for that. |
I'm not really a fan of the module-level variable... We could instead set the default logging level for the library to |
What about moving the It gets rid of the module level variable, and since from gphoto2cffi.backend import lib
lib.logging_enabled = True |
I also think that |
Well, it would still be, since the library does not log with |
Thanks for pushing a working version. While My application still works, it's showing a lot of extra debug information on the terminal. For example:
that
Error during assembling...
message comes about once per second. Since I setup a loop to call (a slightly modified version of)list_cameras()
. Is there I way I can suppress this extra info?The text was updated successfully, but these errors were encountered: