trying to fix logging levels

workspace
Brendan Howell 3 years ago
parent c08cde0226
commit e30f74bbda

@ -270,6 +270,7 @@ class Bureau(object):
logfile = os.path.join(basepath, self.prefix + ".log")
logging.basicConfig(filename=logfile, level=log_level)
self.log = logging.getLogger(self.prefix)
self.log.setLevel(log_level)
log_printer = LogPrinter(self.smprint)
log_format = logging.Formatter('LOG ${levelname} $name: $message', style='$')
log_printer.setFormatter(log_format)

Loading…
Cancel
Save