Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 14991)
+++ /trunk/FACT++/src/datalogger.cc	(revision 14992)
@@ -531,5 +531,4 @@
         if (list[service].format != svc.format)
         {
-            cout << "Format has changed ! taking appropriate measures" << endl;
             if (list[service].nightlyFile.IsOpen())
             {
@@ -537,5 +536,5 @@
                 if (fileName == "")
                 {
-                    cout << "Something went wrong." << endl;
+                    Error("Something went wrong while dealing with new format of "+server+"/"+service+" file tagged as open but filename is empty. Aborting");
                     return;
                 }
@@ -550,4 +549,5 @@
                     if (!testStream) //fileName available
                     {
+                        Warn("Format of "+server+"/"+service+" has changed. Closing "+fileName+" and renaming it to "+newFileName.str());
                         rename(fileName.c_str(), newFileName.str().c_str());
                         break;
@@ -556,5 +556,5 @@
                 }
                 if (counter==100)
-                    Error("Tried to find a replacement file for 100 trials. Aborting");
+                    Error("Could not rename "+fileName+" after 100 trials (because of format change). Aborting");
                 //reallocate the fits buffer...
                 list[service].fitsBufferAllocated = false;
