]> git.aero2k.de Git - urlbot-v3.git/commitdiff
reduce logging (systemd does that for us) and fix config being truncated in case...
authorThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 18:17:55 +0000 (20:17 +0200)
committerThorsten <mail@aero2k.de>
Thu, 4 Oct 2018 18:17:55 +0000 (20:17 +0200)
distbot/common/config.py

index 9f96795238f1fd15231776f9c33207ecb01bce4f..2d5d38e5ad997a4babb1a83cfbea0317b190b2bc 100644 (file)
@@ -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):