Changeset 14992
- Timestamp:
- 03/07/13 10:10:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r14874 r14992 531 531 if (list[service].format != svc.format) 532 532 { 533 cout << "Format has changed ! taking appropriate measures" << endl;534 533 if (list[service].nightlyFile.IsOpen()) 535 534 { … … 537 536 if (fileName == "") 538 537 { 539 cout << "Something went wrong." << endl;538 Error("Something went wrong while dealing with new format of "+server+"/"+service+" file tagged as open but filename is empty. Aborting"); 540 539 return; 541 540 } … … 550 549 if (!testStream) //fileName available 551 550 { 551 Warn("Format of "+server+"/"+service+" has changed. Closing "+fileName+" and renaming it to "+newFileName.str()); 552 552 rename(fileName.c_str(), newFileName.str().c_str()); 553 553 break; … … 556 556 } 557 557 if (counter==100) 558 Error(" Tried to find a replacement file for 100 trials. Aborting");558 Error("Could not rename "+fileName+" after 100 trials (because of format change). Aborting"); 559 559 //reallocate the fits buffer... 560 560 list[service].fitsBufferAllocated = false;
Note:
See TracChangeset
for help on using the changeset viewer.