Index: trunk/src/python/unifiedlogger/logging_service.py
===================================================================
--- trunk/src/python/unifiedlogger/logging_service.py	(revision 466)
+++ trunk/src/python/unifiedlogger/logging_service.py	(revision 471)
@@ -4,18 +4,23 @@
 
 outputFilename = "unifiedlog.csv"
-
+seconds = 0
+# convert seconds to H:MM:SS
+def toHMS(seconds):
+    m, s = divmod(int(seconds), 60)
+    h, m = divmod(m, 60)
+    return  "%d:%02d:%02d" % (h, m, s)    
+    
 # Load the sim time file and extract the seconds */
 def getSimTime():
+    global seconds    
     with open ("webapps/dynamicdata/sim_elapsedtime.json", 'r') as myfile:
         jsonData=myfile.read()
-    seconds = 0
     try:     
        seconds = json.loads(jsonData)['elapsedtime']
     except:
-       print "Error loading json for elapsed time"
+       print "Unable to read sim time. ",
+       print "Proceeding with previous time: ", toHMS(seconds)
     # convert seconds to H:MM:SS
-    m, s = divmod(int(seconds), 60)
-    h, m = divmod(m, 60)
-    return  "%d:%02d:%02d" % (h, m, s)    
+    return toHMS(seconds)
 
 def startup():
