Rotate out nodepool logs every 8-hours

Individual nodepool .log files have now grown to being > 250mb.  This
is a bit much to download and go through when you're trying to debug
an issue with a particular image.

8-hour rotations seems a bit more useful than 24-hour ... and perhaps
even that is a bit long.  I don't think we need to extended the number
of rotations, I'm not sure really old logs are that helpful.

Change-Id: Ia788db809afe470bb9241f17411e4fa97d09ea11
This commit is contained in:
Ian Wienand 2014-10-22 10:32:52 +11:00
parent 124330369a
commit 6d77d85ede

View File

@ -37,19 +37,19 @@ args=(sys.stdout,)
level=DEBUG
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/nodepool/debug.log', 'midnight', 1, 30,)
args=('/var/log/nodepool/debug.log', 'H', 8, 30,)
[handler_normal]
level=INFO
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('/var/log/nodepool/nodepool.log', 'midnight', 1, 30,)
args=('/var/log/nodepool/nodepool.log', 'H', 8, 30,)
[handler_image]
level=INFO
class=logging.handlers.TimedRotatingFileHandler
formatter=simple
args=('<%= @image_log_document_root %>/image.log', 'midnight', 1, 30,)
args=('<%= @image_log_document_root %>/image.log', 'H', 8, 30,)
[formatter_simple]
format=%(asctime)s %(levelname)s %(name)s: %(message)s