-
Notifications
You must be signed in to change notification settings - Fork 18
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
Restore verbose kwarg to load_xdf #42
Conversation
I'm not a fan of those |
+100 for doing it like @tstenner suggested. I'd implement the following behavior:
MNE does it like that, see https://www.nmr.mgh.harvard.edu/mne/stable/generated/mne.set_log_level.html. |
b9d3320
to
01cba57
Compare
I find it strange that INFO, which is technically above DEBUG, also includes DEBUG. Or am I getting that wrong? |
01cba57
to
e1e10d6
Compare
No, INFO does not include DEBUG. It's the other way round, DEBUG includes everything else. |
That's what I guessed from reading about logging levels in the docs though it was never explicit, but then I read something that stated the opposite explicitly. So, if DEBUG is the lowest-level, then why did you recommend that when verbose is provided we set it to INFO instead of DEBUG? Is it just a case of "that's common practice"?
Why? What's the use case? This logger is for this module only. As far as I can tell, you're trying to prevent a situation where someone first calls load_xdf(verbose=False), then later call load_xdf(verbose=None) expecting the logger to use the root logging level, not the logging level that was set from the previous call. If someone ever complains about that then by all means you can make a decorator. Decorate your heart out. |
e1e10d6
to
717cb18
Compare
Yep.
Fair enough. |
Feel free to change the behavior of |
717cb18
to
d45c556
Compare
d45c556
to
36e7bd7
Compare
OK back to DEBUG. I'll run a couple more tests locally then merge. |
Fixes #41