Changeset 645 in tmcsimulator for trunk/src/python/unifiedlogger/activitylog_watcher.py
- Timestamp:
- 09/01/2022 01:12:20 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/activitylog_watcher.py
r644 r645 45 45 config.read('config/logging_service.cfg') 46 46 return config.get('Paths', 'ActivityLogPath') 47 48 # get data filenames from configuration 49 # returns incident data filename, incident summary filename 50 # jdalbey 2022.9.1 51 def getLogFilenames(): 52 config = ConfigParser.ConfigParser() 53 config.read('config/logging_service.cfg') 54 file1 = config.get('Files','ActivityLogDataFilename') 55 file2 = config.get('Files','ActivityLogSummaryFilename') 56 return file1,file2 47 57 48 58 # Read the activty log entries 49 59 def readFile1(): 50 logfilename = "incident_activity.json"#"IncidentActivity.log"60 logfilename = getLogFilenames()[0] #"IncidentActivity.log" 51 61 output = [] 52 62 try: … … 64 74 # It has a different format than incident_activity.json, so we put it in a separate function. 65 75 def readFile2(): 66 data_summary = "incident_description.json" 76 data_summary = getLogFilenames()[1] #"incident_description.json" 77 67 78 output = [] 68 79 try:
Note: See TracChangeset
for help on using the changeset viewer.
