From: Thorsten Date: Thu, 4 Oct 2018 18:17:55 +0000 (+0200) Subject: reduce logging (systemd does that for us) and fix config being truncated in case... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=92694457a42d79972bd97486ef2639585e34b931;p=urlbot-v3.git reduce logging (systemd does that for us) and fix config being truncated in case of errors --- 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):