Skip to content

Commit

Permalink
fix: log debug lines in pfcon to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshi1215 authored Oct 20, 2022
1 parent 9bb6cb3 commit 803415a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pfcon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ def __init__(self):
'class': 'logging.StreamHandler',
'formatter': 'simple',
},
'file': {
'console_stdout': {
'level': 'DEBUG',
'class': 'logging.FileHandler',
'filename': '/tmp/debug.log',
'class': 'logging.StreamHandle',
'stream': 'ext://sys.stdout',
'formatter': 'simple'
}
},
Expand All @@ -69,7 +69,7 @@ def __init__(self):
},
'pfcon': { # pfcon package logger
'level': 'DEBUG',
'handlers': ['console_simple', 'file'],
'handlers': ['console_simple', 'console_stdout'],
'propagate': False
# required to avoid double logging with root logger
},
Expand Down

0 comments on commit 803415a

Please sign in to comment.