1
0
mirror of synced 2024-11-24 14:30:09 +01:00

mucha: now respects log level set in core.yaml

This commit is contained in:
Kevin Trocolli 2023-05-30 21:32:27 -04:00
parent 2418abacce
commit 37d24b3b4d

View File

@ -33,8 +33,8 @@ class MuchaServlet:
self.logger.addHandler(fileHandler)
self.logger.addHandler(consoleHandler)
self.logger.setLevel(logging.INFO)
coloredlogs.install(level=logging.INFO, logger=self.logger, fmt=log_fmt_str)
self.logger.setLevel(cfg.mucha.loglevel)
coloredlogs.install(level=cfg.mucha.loglevel, logger=self.logger, fmt=log_fmt_str)
all_titles = Utils.get_all_titles()