From bcd250d2b0296b7495facb46d79ecf23ba8855b3 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 23 Jun 2023 21:42:00 -0400 Subject: [PATCH] change STDOUT to CONSOLE --- mail4one/config.py | 2 +- mail4one/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,