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

From: <poeml_at_mirrorbrain.org>
Date: Wed, 25 Nov 2009 21:28:22 -0000
Author: poeml
Date: Wed Nov 25 22:28:22 2009
New Revision: 40

URL: http://svn.mirrorbrain.org/viewvc/mod_stats?rev=40&view=rev
Log:
save the raw URL for debugging later

Modified:
    trunk/tools/dlcount.py

Modified: trunk/tools/dlcount.py
URL: http://svn.mirrorbrain.org/viewvc/mod_stats/trunk/tools/dlcount.py?rev=40&r1=39&r2=40&view=diff
==============================================================================
--- trunk/tools/dlcount.py (original)
+++ trunk/tools/dlcount.py Wed Nov 25 22:28:22 2009
@@ -255,6 +255,7 @@
     for req in reqs:
 
         (ip, url, status, referer, ua, country) = req
+        url_raw = url
 
         # over a window of StatsDupWindow last requests, the same request must
         # not have occured already
@@ -287,6 +288,7 @@
         for r, s, mreg in conf['statsprefilter']:
             url = r.sub(s, url)
 
+        # url_raw still contains the original url, if needed
         print '%-80s ' % url, 
 
         matched = False




_______________________________________________
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 Wed Nov 25 2009 - 21:28:23 GMT

This archive was generated by hypermail 2.2.0 : Wed Nov 25 2009 - 21:45:14 GMT