# HG changeset patch # User Ludovic Chabant # Date 1426110171 25200 # Node ID b4609aea0ec8999394d5f1a5d88790448028ea48 # Parent 0b7e6b2699ad84e8f831e5580f3ad0587638a8ac wsgi: Default to a small-ish rotating log file handler. diff -r 0b7e6b2699ad -r b4609aea0ec8 wikked/wsgiutil.py --- a/wikked/wsgiutil.py Sat Oct 25 22:27:17 2014 -0700 +++ b/wikked/wsgiutil.py Wed Mar 11 14:42:51 2015 -0700 @@ -6,11 +6,11 @@ def get_wsgi_app(wiki_root=None, async_update=False, log_file=None, - max_log_bytes=0, log_backup_count=0, log_level=logging.INFO): + max_log_bytes=4096, log_backup_count=0, log_level=logging.INFO): if log_file: from logging.handlers import RotatingFileHandler handler = RotatingFileHandler(log_file, maxBytes=max_log_bytes, - backupCount=log_backup_count) + backupCount=log_backup_count) handler.setLevel(log_level) logging.getLogger().addHandler(handler)