]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Bind options argument in define_logging_options.
authorBen Darnell <ben@bendarnell.com>
Wed, 18 Feb 2015 01:35:19 +0000 (20:35 -0500)
committerBen Darnell <ben@bendarnell.com>
Wed, 18 Feb 2015 01:35:19 +0000 (20:35 -0500)
This allows it to be used with non-default options instances.

Fixes #1342.

tornado/log.py

index 374071d419ddde5b590f0e865aefa5638ab2733e..e4cc91f2106e8caf780d40207dc620c6c5d9adcf 100644 (file)
@@ -227,4 +227,4 @@ def define_logging_options(options=None):
     options.define("log_file_num_backups", type=int, default=10,
                    help="number of log files to keep")
 
-    options.add_parse_callback(enable_pretty_logging)
+    options.add_parse_callback(lambda: enable_pretty_logging(options))