Python 2.5 fix
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 15 Aug 2010 12:04:40 +0000 (12:04 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Sun, 15 Aug 2010 12:04:40 +0000 (12:04 +0000)
bin/inputs/run.py

index 564809fc5db3e0fdbf366beb7b685ff45748b611..194826dce57d7954f903a0b1582907329baea634 100644 (file)
@@ -42,7 +42,9 @@ def main():
     rootlogger.setLevel(loglevel)
     
     # create file handler which logs even debug messages
-    fh = logging.handlers.TimedRotatingFileHandler('/var/log/ais/daemon', when='D', backupCount=7, utc=True)
+    #utc=True is python 2.6 specific
+    #fh = logging.handlers.TimedRotatingFileHandler('/var/log/ais/daemon', when='D', backupCount=7, utc=True)
+    fh = logging.handlers.TimedRotatingFileHandler('/var/log/ais/daemon', when='D', backupCount=7)
     #fh.setLevel(logging.DEBUG)
 
     # create console handler with a higher log level