set a proper format for the console output
This commit is contained in:
parent
1f85a11293
commit
55d398b5b4
@ -49,6 +49,8 @@ class PungiBase():
|
||||
filename=logfile)
|
||||
|
||||
# Create the stdout/err streams and only send INFO+ stuff there
|
||||
formatter = logging.Formatter('%(name)s:%(levelname)s: %(message)s')
|
||||
console = logging.StreamHandler()
|
||||
console.setFormatter(formatter)
|
||||
console.setLevel(logging.INFO)
|
||||
logging.getLogger('').addHandler(console)
|
||||
|
Loading…
Reference in New Issue
Block a user