Skip to content
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

Logging module no longer works #76

Open
ambarb opened this issue Nov 6, 2020 · 1 comment
Open

Logging module no longer works #76

ambarb opened this issue Nov 6, 2020 · 1 comment

Comments

@ambarb
Copy link
Contributor

ambarb commented Nov 6, 2020

https://github.com/NSLS-II-CSX/csxtools/blob/master/examples/Correct_FastCCD_Images.ipynb

I cannot reproduce this notebook. Logging code is still in the functions of CSXtools (and the level is set to the same value ("info").

@ambarb
Copy link
Contributor Author

ambarb commented Oct 16, 2024

import logging
logging.getLogger().setLevel(logging.INFO)

maybe it is a syntax difference that is no longer checked and just silences the fail

from logging import INFO, basicConfig, getLogger
basicConfig(level=INFO)
getLogger()

however, use argparse as a wrapper to logging looks like it will work more generically in the namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant