Changeset 218 for Chief


Ignore:
Timestamp:
05/28/10 09:54:17 (15 years ago)
Author:
daqct3
Message:
Adapted to new name of status service
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Chief/Chief.cc

    r190 r218  
    7272  FILE *RunNumFile = fopen(Chief->RunNumFilename, "r+");
    7373  if(RunNumFile == NULL) {
    74     Chief->State(Chief->ERROR, "Could not open file '%s' that contains the last run number (%s)", Chief->RunNumFilename, strerror(errno));
     74    Chief->Message(Chief->ERROR, "Could not open file '%s' that contains the last run number (%s)", Chief->RunNumFilename, strerror(errno));
    7575        OK = false;
    7676  }
     
    7878        // Read last run number
    7979        if(fscanf(RunNumFile,"%d", &RunNumber) != 1 ) {
    80       Chief->State(Chief->ERROR, "Could not read run number from file '%s'", Chief->RunNumFilename);
     80      Chief->Message(Chief->ERROR, "Could not read run number from file '%s'", Chief->RunNumFilename);
    8181          OK = false;
    8282        }
     
    8686        rewind(RunNumFile);
    8787        if(OK && fprintf(RunNumFile,"%.8u   ",RunNumber) < 0) {
    88       Chief->State(Chief->ERROR, "Could not write to run number file '%s'", Chief->RunNumFilename);
     88      Chief->Message(Chief->ERROR, "Could not write to run number file '%s'", Chief->RunNumFilename);
    8989          OK = false;
    9090        }
     
    9292        // Close run number file
    9393        if(fclose(RunNumFile) != 0) {
    94       Chief->State(Chief->ERROR, "Could not close run number file '%s'", Chief->RunNumFilename);
     94      Chief->Message(Chief->ERROR, "Could not close run number file '%s'", Chief->RunNumFilename);
    9595          OK = false;
    9696        }
     
    102102  setData(RunNumber);
    103103  Chief->LastRunNumber->updateService();
    104   Chief->State(Chief->INFO, "Dispatched run number %d", RunNumber);
     104  Chief->Message(Chief->INFO, "Dispatched run number %d", RunNumber);
    105105}
    106106
Note: See TracChangeset for help on using the changeset viewer.