]> git.treefish.org Git - phys/latlib.git/commitdiff
writing some log messages to log file instead of cerr.
authorAlex Schmidt <alex@treefish.org>
Thu, 7 Feb 2013 10:01:58 +0000 (11:01 +0100)
committerAlex Schmidt <alex@treefish.org>
Thu, 7 Feb 2013 10:01:58 +0000 (11:01 +0100)
writeout.cpp

index 67e90d3b3b9f54fb826d3aa8a554010cd7e3e492..19625ec0a75b1d03919876df3b5f3bbb09972643 100644 (file)
@@ -85,7 +85,7 @@ writeout::~writeout()
              if( (nextfile=getdatfile()) == "" ) sleep(1);
              else
                {
-                 cerr << "collecting " << nextfile << endl;
+                 logf << "collecting " << nextfile << endl;
 
                  ifstream myfile( (fulldir + "/" + nextfile).c_str() );
                  while(true){
@@ -121,7 +121,7 @@ string writeout::getdatfile()
   struct dirent *dirp;
 
   if((dp  = opendir(fulldir.c_str())) == NULL) {
-    cerr << "Error(" << errno << ") opening " << fulldir << endl;
+    logf << "Error(" << errno << ") opening " << fulldir << endl;
     return "";
   }