Rotate log at 10M instead of 100k

This commit is contained in:
Stein Magnus Jodal 2010-08-24 22:37:40 +02:00
parent cc98052df8
commit 19909d7aca

View File

@ -25,7 +25,7 @@ def setup_debug_logging_to_file():
root.setLevel(logging.DEBUG)
formatter = logging.Formatter(settings.DEBUG_LOG_FORMAT)
handler = logging.handlers.RotatingFileHandler(
settings.DEBUG_LOG_FILENAME, maxBytes=102400, backupCount=3)
settings.DEBUG_LOG_FILENAME, maxBytes=10485760, backupCount=3)
handler.setFormatter(formatter)
root.addHandler(handler)