From fb3f5b38c31833d73404bbdb98d61ecef8be9dd8 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 4 Dec 2019 01:30:05 +0100 Subject: [PATCH] Shorten log format --- restic_compose_backup/log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/restic_compose_backup/log.py b/restic_compose_backup/log.py index ab3c017..6b8395d 100644 --- a/restic_compose_backup/log.py +++ b/restic_compose_backup/log.py @@ -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)