diff options
author | André Erdmann <dywi@mailerd.de> | 2014-02-21 19:22:28 +0100 |
---|---|---|
committer | André Erdmann <dywi@mailerd.de> | 2014-02-21 19:22:28 +0100 |
commit | 97ddb120f071669bb1322de558b80dce7d086e66 (patch) | |
tree | ed895f1aafeb6e6b790c1081ded599a53916e10a /roverlay/recipe | |
parent | roverlay-9999.ebuild: reenable python2_7 (diff) | |
download | R_overlay-97ddb120f071669bb1322de558b80dce7d086e66.tar.gz R_overlay-97ddb120f071669bb1322de558b80dce7d086e66.tar.bz2 R_overlay-97ddb120f071669bb1322de558b80dce7d086e66.zip |
roverlay/, logging: rotate log files by default
change some logging defaults:
LOG_FILE_ROTATE: false -> true
LOG_FILE_ROTATE_COUNT: 3 -> 5
Diffstat (limited to 'roverlay/recipe')
-rw-r--r-- | roverlay/recipe/easylogger.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roverlay/recipe/easylogger.py b/roverlay/recipe/easylogger.py index 2b6281b..a782eec 100644 --- a/roverlay/recipe/easylogger.py +++ b/roverlay/recipe/easylogger.py @@ -129,7 +129,7 @@ def setup_file ( conf ): logfile = conf.get ( 'LOG.FILE.file' ) if not logfile or not conf.get ( 'LOG.FILE.enabled', True ): return - rotating = conf.get ( 'LOG.FILE.rotate', False ) + rotating = conf.get ( 'LOG.FILE.rotate', True ) logdir = os.path.dirname ( logfile ) if not os.path.isdir ( logdir ): @@ -151,7 +151,7 @@ def setup_file ( conf ): fh = logging.handlers.RotatingFileHandler ( logfile, - backupCount=conf.get ( 'LOG.FILE.rotate_count', 3 ) + backupCount=conf.get ( 'LOG.FILE.rotate_count', 5 ) ) if rotate_now: fh.doRollover() |