Skip to content

Commit

Permalink
log rotate - fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsPur committed Dec 29, 2023
1 parent 6c4cf7d commit 7f11cc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions roles/importer/files/importer/fwo_log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sys
import fwo_globals
import logging
import asyncio
import time
Expand Down Expand Up @@ -81,7 +83,7 @@ def getFwoLogger():
log_level = logging.INFO

logger = logging.getLogger()
log_handler = LogHandler(stream=stdout)
log_handler = LogHandler(stream=sys.stdout)
log_filter = LogFilter()

log_format = "%(asctime)s [%(levelname)-5.5s] [%(filename)-10.10s:%(funcName)-10.10s:%(lineno)4d] %(message)s"
Expand Down Expand Up @@ -111,7 +113,7 @@ def getFwoAlertLogger(debug_level=0):
llevel = logging.INFO

logger = logging.getLogger() # use root logger
log_handler = LogHandler(stream=stdout)
log_handler = LogHandler(stream=sys.stdout)
log_filter = LogFilter()

logformat = "%(asctime)s %(message)s"
Expand Down

0 comments on commit 7f11cc8

Please sign in to comment.