Shorten log format

This commit is contained in:
Einar Forselv 2019-12-04 01:30:05 +01:00
parent 4ff0df1b35
commit fb3f5b38c3
1 changed files with 2 additions and 1 deletions

View File

@ -25,5 +25,6 @@ def setup(level: str = 'warning'):
ch = logging.StreamHandler(stream=sys.stdout)
ch.setLevel(level)
ch.setFormatter(logging.Formatter(f'%(asctime)s - {HOSTNAME} - %(name)s - %(levelname)s - %(message)s'))
# ch.setFormatter(logging.Formatter(f'%(asctime)s - {HOSTNAME} - %(name)s - %(levelname)s - %(message)s'))
ch.setFormatter(logging.Formatter(f'%(asctime)s - {HOSTNAME} - %(levelname)s - %(message)s'))
logger.addHandler(ch)