From: Brian Warner Date: Thu, 11 Oct 2007 09:13:05 +0000 (-0700) Subject: node.py: set logging timestamp to '2007-10-11 02:11:14.000Z', per ticket #171. No... X-Git-Tag: allmydata-tahoe-0.6.1~45 X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/something?a=commitdiff_plain;h=1b406f3c3283b5d8ecdb16bff6c090caacc6a097;p=tahoe-lafs%2Ftahoe-lafs.git node.py: set logging timestamp to '2007-10-11 02:11:14.000Z', per ticket #171. No milliseconds yet, though --- diff --git a/src/allmydata/node.py b/src/allmydata/node.py index f5e72770..2674b31a 100644 --- a/src/allmydata/node.py +++ b/src/allmydata/node.py @@ -175,7 +175,8 @@ class Node(service.MultiService): msg = msg % tuple(map(humanreadable.hr, args)) except TypeError, e: msg = "ERROR: output string '%s' contained invalid %% expansion, error: %s, args: %s\n" % (`msg`, e, `args`) - log.FileLogObserver.timeFormat="%y%m%d-%H:%M:%S" + # TODO: modify the timestamp to include milliseconds + log.FileLogObserver.timeFormat="%Y-%m-%d %H:%M:%S.000Z" log.callWithContext({"system":logsrc},log.msg,(self.short_nodeid + ": " + humanreadable.hr(msg))) def _setup_tub(self, local_addresses):