From: Alexander B. Schmidt Date: Sat, 3 Nov 2012 21:03:42 +0000 (+0100) Subject: ... X-Git-Url: http://git.treefish.org/~alex/phys/latlib.git/commitdiff_plain/8717c8bf4f2860eed6a4b8552d63dceaa75f4dc5 ... --- diff --git a/configcache.cpp b/configcache.cpp index b5496c7..15c85f9 100644 --- a/configcache.cpp +++ b/configcache.cpp @@ -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(); } diff --git a/writeout.cpp b/writeout.cpp index 54b8203..9a5409d 100644 --- a/writeout.cpp +++ b/writeout.cpp @@ -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);