chiark / gitweb /
Improved some logging levels for stats
authorCiaran Gultnieks <ciaran@ciarang.com>
Sat, 22 Feb 2014 10:05:07 +0000 (10:05 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sat, 22 Feb 2014 10:05:07 +0000 (10:05 +0000)
fdroidserver/stats.py

index 3211d4f20d08111029b49dbdba5d4223db7ed329..cbafd1a4b8620aac797aa654a04e59b33a57d0ac 100644 (file)
@@ -99,7 +99,7 @@ def main():
                     destsize = ftp.stat(f).st_size
                     if (not os.path.exists(destpath) or
                             os.path.getsize(destpath) != destsize):
-                        logging.info("...retrieving " + f)
+                        logging.debug("...retrieving " + f)
                         ftp.get(f, destpath)
         except Exception:
             traceback.print_exc()
@@ -122,7 +122,7 @@ def main():
         logexpr = '(?P<ip>[.:0-9a-fA-F]+) - - \[(?P<time>.*?)\] "GET (?P<uri>.*?) HTTP/1.\d" (?P<statuscode>\d+) \d+ "(?P<referral>.*?)" "(?P<useragent>.*?)"'
         logsearch = re.compile(logexpr).search
         for logfile in glob.glob(os.path.join(logsdir,'access-*.log.gz')):
-            logging.info('...' + logfile)
+            logging.debug('...' + logfile)
             if options.verbose:
                 print '...' + logfile
             p = subprocess.Popen(["zcat", logfile], stdout = subprocess.PIPE)