Changeset 549 in tmcsimulator for trunk/src/python


Ignore:
Timestamp:
12/26/2019 06:37:15 AM (6 years ago)
Author:
jdalbey
Message:

unifiedlogger Correct messages to have similar capitalization and punctuation.

Location:
trunk/src/python/unifiedlogger
Files:
3 edited

Legend:

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

    r513 r549  
    6969        code = item[4].replace(',','') 
    7070        msg = item[5].replace(',','') 
    71         desiredFields = "Activity Log.,"+name+"," + incident_num + " " + code+" "+msg 
     71        desiredFields = "Activity Log,"+name+"," + incident_num + " " + code+" "+msg 
    7272        # Append to results list 
    7373        resultList.append(desiredFields) 
  • trunk/src/python/unifiedlogger/cms_watcher.py

    r440 r549  
    7171          # Is a new message activated? 
    7272          if isEmpty(prevList[idx]) and isFull(currList[idx]): 
    73                results.append("CMS Activated.," + locationMap[idList[idx]] + ", '" + currList[idx] +"'") 
     73               results.append("CMS Activated," + locationMap[idList[idx]] + ", '" + currList[idx] +"'") 
    7474          # Is an existing message turned off? 
    7575          if isEmpty(currList[idx]) and isFull(prevList[idx]): 
    76                results.append("CMS Deactivated., " + locationMap[idList[idx]]) 
     76               results.append("CMS Deactivated, " + locationMap[idList[idx]]) 
    7777          # Did a message change? 
    7878          if isFull(currList[idx]) and isFull(prevList[idx]) and currList[idx] != prevList[idx]: 
    79                results.append("CMS Updated., " + locationMap[idList[idx]] + ", '" + currList[idx] +"'") 
     79               results.append("CMS Updated, " + locationMap[idList[idx]] + ", '" + currList[idx] +"'") 
    8080 
    8181     # Save the current list as previous 
  • trunk/src/python/unifiedlogger/wing_project.wpr

    r545 r549  
    470470                              (loc('extend_unifiedlogger.py'), 
    471471                               {'attrib-starts': [], 
    472                                 'code-line': "                        # if t"\ 
    473         "here's detail field add it to the entries \n", 
    474                                 'first-line': 33L, 
     472                                'code-line': 'out_file.close()\n', 
     473                                'first-line': 51L, 
    475474                                'folded-linenos': [], 
    476                                 'sel-line': 56L, 
    477                                 'sel-line-start': 2592L, 
    478                                 'selection_end': 2641L, 
    479                                 'selection_start': 2641L, 
     475                                'sel-line': 69L, 
     476                                'sel-line-start': 3068L, 
     477                                'selection_end': 3085L, 
     478                                'selection_start': 3068L, 
    480479                                'zoom': 0L}), 
    481480                              (loc('../../../config/logging_service.cfg'), 
Note: See TracChangeset for help on using the changeset viewer.