]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
node.py: don't append 'Z' to the timestamp, since it's really localtime. We need...
authorBrian Warner <warner@lothar.com>
Thu, 11 Oct 2007 09:24:17 +0000 (02:24 -0700)
committerBrian Warner <warner@lothar.com>
Thu, 11 Oct 2007 09:24:17 +0000 (02:24 -0700)
src/allmydata/node.py

index 2674b31ab056f27d5063570d340b30a15d88f855..c1d0b4ffe49d1d71a3f62e3ac0b26156f9433a89 100644 (file)
@@ -176,7 +176,9 @@ class Node(service.MultiService):
             except TypeError, e:
                 msg = "ERROR: output string '%s' contained invalid %% expansion, error: %s, args: %s\n" % (`msg`, e, `args`)
         # TODO: modify the timestamp to include milliseconds
-        log.FileLogObserver.timeFormat="%Y-%m-%d %H:%M:%S.000Z"
+        # TODO: modify it to be in UTC instead of localtime
+        #  (see twisted/python/log.py:FileLogObserver.formatTime line 362)
+        log.FileLogObserver.timeFormat="%Y-%m-%d %H:%M:%S"
         log.callWithContext({"system":logsrc},log.msg,(self.short_nodeid + ": " + humanreadable.hr(msg)))
 
     def _setup_tub(self, local_addresses):