Created
February 25, 2020 07:40
-
-
Save izikeros/3c5bb66566f78a5289390bfea5563bd5 to your computer and use it in GitHub Desktop.
Set log level in jupyter notebook calling other modules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (source: https://stackoverflow.com/a/35327111/3247880) | |
# Put this code at the beginning of the notebook | |
import logging | |
logger = logging.getLogger() | |
assert len(logger.handlers) == 1 | |
handler = logger.handlers[0] | |
handler.setLevel(logging.DEBUG) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment