Ignore:
Timestamp:
07/18/2019 08:19:25 AM (7 years ago)
Author:
jdalbey
Message:

Logging Service: add missing file error check. Cad watcher modified to read log file path from config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python/unifiedlogger/logging_service.py

    r439 r454  
    99    with open ("webapps/dynamicdata/sim_elapsedtime.json", 'r') as myfile: 
    1010        jsonData=myfile.read() 
    11           
    12     seconds = json.loads(jsonData)['elapsedtime'] 
     11    seconds = 0 
     12    try:      
     13       seconds = json.loads(jsonData)['elapsedtime'] 
     14    except: 
     15       print "Error loading json for elapsed time" 
    1316    # convert seconds to H:MM:SS 
    1417    m, s = divmod(int(seconds), 60) 
Note: See TracChangeset for help on using the changeset viewer.