Changeset 14992


Ignore:
Timestamp:
03/07/13 10:10:14 (12 years ago)
Author:
lyard
Message:
Made message in case of service format change more explicit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/datalogger.cc

    r14874 r14992  
    531531        if (list[service].format != svc.format)
    532532        {
    533             cout << "Format has changed ! taking appropriate measures" << endl;
    534533            if (list[service].nightlyFile.IsOpen())
    535534            {
     
    537536                if (fileName == "")
    538537                {
    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");
    540539                    return;
    541540                }
     
    550549                    if (!testStream) //fileName available
    551550                    {
     551                        Warn("Format of "+server+"/"+service+" has changed. Closing "+fileName+" and renaming it to "+newFileName.str());
    552552                        rename(fileName.c_str(), newFileName.str().c_str());
    553553                        break;
     
    556556                }
    557557                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");
    559559                //reallocate the fits buffer...
    560560                list[service].fitsBufferAllocated = false;
Note: See TracChangeset for help on using the changeset viewer.