From 777ea5313a307a7aa36815adb708485a5b14896e Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 20 May 2008 19:46:16 +0000 Subject: [PATCH] added millisecond to the time output git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1335 9efc2488-bf62-4759-914b-345cdb29e865 --- src/python/osrf/log.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/python/osrf/log.py b/src/python/osrf/log.py index b3d57d0..ad2f0af 100644 --- a/src/python/osrf/log.py +++ b/src/python/osrf/log.py @@ -148,7 +148,9 @@ def __log_file(msg): 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: -- 2.11.0