[mirrorbrain-commits] [mod_stats] r47 - /trunk/tools/dlcount.py

From: <poeml_at_mirrorbrain.org>
Date: Thu, 26 Nov 2009 21:25:51 -0000
Author: poeml
Date: Thu Nov 26 22:25:50 2009
New Revision: 47

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=47&view=rev
Log:
fix the StatsLogMask default setting, which didn't result in a valid config structure

Modified:
    trunk/tools/dlcount.py

Modified: trunk/tools/dlcount.py
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/dlcount.py?rev=47&r1=46&r2=47&view=diff
==============================================================================
--- trunk/tools/dlcount.py (original)
+++ trunk/tools/dlcount.py Thu Nov 26 22:25:50 2009
@@ -226,7 +226,7 @@
     if not len(conf['statslogmask']):
         regex = '^(\S+).+"GET (\S*) HTTP.*" (200|302) [^"]+ "([^"]*)" "([^"]*)".* \w\w:(\w\w) ASN:'
         regex_compiled = re.compile(regex)
-        conf['statslogmask'] = ((regex_compiled, regex))
+        conf['statslogmask'] = [(regex_compiled, regex)]
 
     #import pprint
     #pprint.pprint(conf)




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Thu Nov 26 2009 - 21:25:53 GMT

This archive was generated by hypermail 2.2.0 : Thu Nov 26 2009 - 21:45:10 GMT