Skip to content
Snippets Groups Projects
Commit 16ac71aa authored by Oriol Tintó Prims's avatar Oriol Tintó Prims Committed by Oriol Tintó
Browse files

Change hdf5plugin logging level to Warning to avoid unnecessary output.

parent a72afce2
No related branches found
No related tags found
1 merge request!5Development
......@@ -19,6 +19,14 @@ from .errors import WrongCompressionSpecificationError, WrongCompressionModeErro
from copy import deepcopy
from pathlib import Path
import logging
# Change hdf5plugin logging levels to Warning
loggers = {name: logging.getLogger(name) for name in logging.root.manager.loggerDict}
hdf5plugin_loggers = [key for key in loggers.keys() if key.count("hdf5plugin")]
for key in hdf5plugin_loggers:
loggers[key].setLevel(logging.WARNING)
class _Mapping(Mapping):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment