From 0bf89e078f50d3ff8327cc076b53f6cf45f063b5 Mon Sep 17 00:00:00 2001 From: XaverStiensmeier Date: Thu, 21 Sep 2023 11:16:26 +0200 Subject: [PATCH] removed unnecessary add to stdout (already standard) from startup_rest.py --- bibigrid/core/startup_rest.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bibigrid/core/startup_rest.py b/bibigrid/core/startup_rest.py index e416e87a..ad737bc4 100644 --- a/bibigrid/core/startup_rest.py +++ b/bibigrid/core/startup_rest.py @@ -36,11 +36,9 @@ LOG_FORMAT = "%(asctime)s [%(levelname)s] %(message)s" LOG_FORMATTER = logging.Formatter(LOG_FORMAT) LOG = logging.getLogger("bibigrid") -stream_handler = logging.StreamHandler() file_handler = logging.FileHandler(os.path.join(LOG_FOLDER, "bibigrid_rest.log")) -for handler in [stream_handler, file_handler]: - handler.setFormatter(LOG_FORMATTER) - LOG.addHandler(handler) +file_handler.setFormatter(LOG_FORMATTER) +LOG.addHandler(file_handler) logging.addLevelName(42, "PRINT") LOG.setLevel(logging.DEBUG)