Revision: 4015
Author: wikipedian
Date: 2007-08-09 14:10:36 +0000 (Thu, 09 Aug 2007)
Log Message:
-----------
log config variable: use ['*'] instead of 'all' to avoid a type mismatch
warning
Modified Paths:
--------------
trunk/pywikipedia/config.py
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/config.py
===================================================================
--- trunk/pywikipedia/config.py 2007-08-09 14:02:27 UTC (rev 4014)
+++ trunk/pywikipedia/config.py 2007-08-09 14:10:36 UTC (rev 4015)
@@ -164,7 +164,7 @@
# Example:
# log = ['interwiki', 'weblinkchecker', 'table2wiki']
# It is also possible to enable logging for all scripts, using this line:
-# log = 'all'
+# log = ['*']
# Per default, logging of interwiki.py is enabled because its logfiles can
# be used to generate so-called warnfiles.
# This setting can be overridden by the -log or -nolog command-line arguments.
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2007-08-09 14:02:27 UTC (rev 4014)
+++ trunk/pywikipedia/wikipedia.py 2007-08-09 14:10:36 UTC (rev 4015)
@@ -4457,7 +4457,7 @@
# disable the log file
logfile = None
-if config.log == 'all' or calledModuleName() in config.log:
+if '*' in config.log or calledModuleName() in config.log:
setLogfileStatus(True)
output_lock = threading.Lock()
Show replies by date