From 92694457a42d79972bd97486ef2639585e34b931 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Thu, 4 Oct 2018 20:17:55 +0200 Subject: [PATCH] reduce logging (systemd does that for us) and fix config being truncated in case of errors --- distbot/common/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/distbot/common/config.py b/distbot/common/config.py index 9f96795..2d5d38e 100644 --- a/distbot/common/config.py +++ b/distbot/common/config.py @@ -5,7 +5,9 @@ import os from configobj import ConfigObj from validate import Validator -log_format = ' %(asctime)s %(process)d %(thread)d %(levelname).1s %(funcName)-15s %(message)s' +# log_format = ' %(asctime)s %(process)d %(thread)d %(levelname).1s %(funcName)-15s %(message)s' +# TODO: log config files? +log_format = '%(levelname).1s %(funcName)-15s %(message)s' logging.basicConfig( level=logging.INFO, format=log_format @@ -46,7 +48,8 @@ class Config: raise SystemError() else: # TODO: can't remember the reason for this one - self.config_store.write() + # disabled for now. + # self.config_store.write() self.runtime_config_store.write() def _set(self, cfg, path, value): -- 2.39.2