Skip to content

Commit

Permalink
removed unnecessary add to stdout (already standard) from startup_res…
Browse files Browse the repository at this point in the history
…t.py
  • Loading branch information
XaverStiensmeier committed Sep 21, 2023
1 parent 1d5858d commit 0bf89e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bibigrid/core/startup_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0bf89e0

Please sign in to comment.