only set level on "radicale" logger
This commit is contained in:
parent
09644414b5
commit
72501c6e23
@ -38,7 +38,6 @@ except ImportError:
|
|||||||
LOGGER_NAME = "radicale"
|
LOGGER_NAME = "radicale"
|
||||||
LOGGER_FORMAT = "[%(ident)s] %(levelname)s: %(message)s"
|
LOGGER_FORMAT = "[%(ident)s] %(levelname)s: %(message)s"
|
||||||
|
|
||||||
root_logger = logging.getLogger()
|
|
||||||
logger = logging.getLogger(LOGGER_NAME)
|
logger = logging.getLogger(LOGGER_NAME)
|
||||||
|
|
||||||
|
|
||||||
@ -150,7 +149,6 @@ def set_level(level):
|
|||||||
"""Set logging level for global logger."""
|
"""Set logging level for global logger."""
|
||||||
if isinstance(level, str):
|
if isinstance(level, str):
|
||||||
level = getattr(logging, level.upper())
|
level = getattr(logging, level.upper())
|
||||||
root_logger.setLevel(level)
|
|
||||||
logger.setLevel(level)
|
logger.setLevel(level)
|
||||||
if level == logging.DEBUG:
|
if level == logging.DEBUG:
|
||||||
logger.removeFilter(removeTracebackFilter)
|
logger.removeFilter(removeTracebackFilter)
|
||||||
|
Loading…
Reference in New Issue
Block a user