aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-02-21 19:22:28 +0100
committerAndré Erdmann <dywi@mailerd.de>2014-02-21 19:22:28 +0100
commit97ddb120f071669bb1322de558b80dce7d086e66 (patch)
treeed895f1aafeb6e6b790c1081ded599a53916e10a /roverlay/recipe
parentroverlay-9999.ebuild: reenable python2_7 (diff)
downloadR_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.py4
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()