Changeset 6091 for TI01-discovery


Ignore:
Timestamp:
07/12/09 12:09:10 (10 years ago)
Author:
sdonegan
Message:

Updated error log handling - configured for use in production environment on Triton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/run_all_ingest.py

    r5243 r6091  
    5757 
    5858if os.path.exists(summaryFileName): 
    59     commandline = "cat " + summaryFileName + " | mail -s 'ignis discovery ingest report' s.j.donegan@rl.ac.uk" 
     59    commandline = "cat " + summaryFileName + " | mail -s 'TRITON discovery ingest report' steve.donegan@stfc.ac.uk" 
    6060    os.system(commandline) 
    6161 
     
    6363logging.info("ingest report at: "  + summaryFileName) 
    6464 
    65 if error_counter > 0:            
    66     logging.error("WARNING: %s errors were encountered during the run - check logfiles for more details" %error_counter) 
     65if error_counter > 0: 
     66    errorTxt = "WARNING: %s errors were encountered during the run - check logfiles for more details" %error_counter 
     67    logging.error(errorTxt) 
     68    commandline = "echo " + errorTxt + " | mail -s 'TRITON discovery ingest report:PROBLEM' steve.donegan@stfc.ac.uk" 
    6769 
Note: See TracChangeset for help on using the changeset viewer.