diff --git a/larigira/main.py b/larigira/main.py index fba9de6..2bc5655 100644 --- a/larigira/main.py +++ b/larigira/main.py @@ -60,6 +60,7 @@ def sd_notify(ready=False, status=None): def main(): + logging.addLevelName(9, "DEBUGV") if get_conf()["LOG_CONFIG"]: logging.config.fileConfig( get_conf()["LOG_CONFIG"], disable_existing_loggers=True @@ -69,11 +70,10 @@ def main(): "%(asctime)s|%(levelname)s[%(name)s:%(lineno)d] %(message)s" ) logging.basicConfig( - level=logging.DEBUG if get_conf()["DEBUG"] else logging.INFO, + level="DEBUGV" if get_conf()["DEBUG"] else logging.INFO, format=log_format, datefmt="%H:%M:%S", ) - logging.addLevelName(9, "DEBUGV") def debugv(self, message, *args, **kws): if self.isEnabledFor(9):