changeset 330:b4609aea0ec8

wsgi: Default to a small-ish rotating log file handler.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 11 Mar 2015 14:42:51 -0700
parents 0b7e6b2699ad
children 83df9086e723
files wikked/wsgiutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)