Initialize streamhandler early to have it apply to all logs
This commit is contained in:
@@ -48,6 +48,7 @@ def setup_logging_pre() -> None:
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format=LOGFORMAT,
|
||||
handlers=[logging.StreamHandler(sys.stderr)]
|
||||
)
|
||||
|
||||
|
||||
@@ -61,8 +62,6 @@ def setup_logging(config: Dict[str, Any]) -> None:
|
||||
|
||||
logfile = config.get('logfile')
|
||||
|
||||
logging.root.addHandler(logging.StreamHandler(sys.stderr))
|
||||
|
||||
if logfile:
|
||||
s = logfile.split(':')
|
||||
if s[0] == 'syslog':
|
||||
|
Reference in New Issue
Block a user