1
0
forked from Hay1tsme/artemis

mucha: now respects log level set in core.yaml

This commit is contained in:
Hay1tsme 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()