diff --git a/mail4one/config.py b/mail4one/config.py index 9372b06..37a2753 100644 --- a/mail4one/config.py +++ b/mail4one/config.py @@ -63,7 +63,7 @@ class SmtpCfg(ServerCfg): class LogCfg(Jata): - logfile = "STDOUT" + logfile = "CONSOLE" level = "INFO" diff --git a/mail4one/server.py b/mail4one/server.py index fbc9294..cf9715a 100644 --- a/mail4one/server.py +++ b/mail4one/server.py @@ -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,