[Opensrf-commits] r1335 - trunk/src/python/osrf
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 20 15:46:19 EDT 2008
Author: erickson
Date: 2008-05-20 15:46:16 -0400 (Tue, 20 May 2008)
New Revision: 1335
Modified:
trunk/src/python/osrf/log.py
Log:
added millisecond to the time output
Modified: trunk/src/python/osrf/log.py
===================================================================
--- trunk/src/python/osrf/log.py 2008-05-20 19:45:44 UTC (rev 1334)
+++ trunk/src/python/osrf/log.py 2008-05-20 19:46:16 UTC (rev 1335)
@@ -148,7 +148,9 @@
global LOG_TYPE
- timestamp = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
+ epoch = time.time()
+ timestamp = time.strftime('%Y-%M-%d %H:%m:%S', time.localtime(epoch))
+ timestamp += '.%s' % str('%0.3f' % epoch)[-3:] # grab the millis
logfile = None
try:
More information about the opensrf-commits
mailing list