From b8757929fa607cd11fb8b40bcf793626c71340ab Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 4 Dec 2019 03:11:46 +0100 Subject: [PATCH] Reduce 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 6b8395d..5e1b9eb 100644 --- a/restic_compose_backup/log.py +++ b/restic_compose_backup/log.py @@ -26,5 +26,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} - %(levelname)s - %(message)s')) + # ch.setFormatter(logging.Formatter(f'%(asctime)s - {HOSTNAME} - %(levelname)s - %(message)s')) + ch.setFormatter(logging.Formatter(f'%(asctime)s - %(levelname)s: %(message)s')) logger.addHandler(ch)