]> git.treefish.org Git - phys/latlib.git/commitdiff
...
authorAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 21:03:42 +0000 (22:03 +0100)
committerAlexander B. Schmidt <alex@treefish.org>
Sat, 3 Nov 2012 21:03:42 +0000 (22:03 +0100)
configcache.cpp
writeout.cpp

index b5496c7cb40a38ad4f2d0416eace362203235de6..15c85f9c7cc2086651f176107c4261517fd2e6a6 100644 (file)
@@ -105,7 +105,7 @@ bool configcache::readConfig()
 
       while( (!inFile.is_open()) && inFiles.size() > 0 )
        {
-         if(out) *out->log << "Opening dat-file: " << inFiles.back() << endl;
+         if(out) *out->log << "CCACHE: Opening dat-file: " << inFiles.back() << endl << flush;
 
          inFile.open( (DATADIR + "/" + inFiles.back()).c_str(), std::ios::binary );
          inFiles.pop_back();
@@ -122,7 +122,7 @@ bool configcache::readConfig()
          int readturn = -1;
          try { readturn = boost::iostreams::read(*inBuffer, tmpConfig, configSize); }
          catch (std::exception const& ex) {
-           if(out) *out->log << "Caught exception: " << ex.what() << endl;
+           if(out) *out->log << "CCACHE: Caught exception: " << ex.what() << endl << flush;
            inFile.close();
          }
          
index 54b82038d2bbe491e4dfbcbd3dc9e99a0b07473c..9a5409de4e16e0fdda1e654f2179f6364ef8034d 100644 (file)
@@ -42,8 +42,7 @@ writeout::writeout(const string& wdir, const string& signature,
   }
   else{
     buf = cout.rdbuf();
-    logf.open("/dev/null");
-    logbuf = logf.rdbuf();
+    logbuf = cerr.rdbuf();
   }
   out = new ostream(buf);
   log = new ostream(logbuf);