change STDOUT to CONSOLE

This commit is contained in:
Balakrishnan Balasubramanian 2023-06-23 21:42:00 -04:00
parent 9107474d31
commit bcd250d2b0
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ class SmtpCfg(ServerCfg):
class LogCfg(Jata):
logfile = "STDOUT"
logfile = "CONSOLE"
level = "INFO"

View File

@ -23,7 +23,7 @@ def create_tls_context(certfile, keyfile) -> ssl.SSLContext:
def setup_logging(cfg: config.LogCfg):
logging_format = "%(asctime)s %(name)s %(levelname)s %(message)s @ %(filename)s:%(lineno)d"
if cfg.logfile == "STDOUT":
if cfg.logfile == "CONSOLE":
logging.basicConfig(level=cfg.level, format=logging_format)
else:
logging.basicConfig(filename=cfg.logfile,