use the same log file with spec
authorS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 17 Nov 2010 21:23:03 +0000 (16:23 -0500)
committerS.Çağlar Onur <caglar@cs.princeton.edu>
Wed, 17 Nov 2010 21:23:03 +0000 (16:23 -0500)
aspects/ratelimitaspects.py

index dbe0242..25db395 100644 (file)
@@ -26,7 +26,7 @@ class BaseRateLimit(object):
         self.whitelist = []
 
     def log(self, line):
-        log = open("/var/log/plc_ratelimit.log", "a")
+        log = open("/var/log/plc_api_ratelimit.log", "a")
         date = datetime.now().strftime("%d/%m/%y %H:%M")
         log.write("%s - %s\n" % (date, line))
         log.flush()