# HG changeset patch # User Chris Cannam # Date 1529591847 -3600 # Node ID f2fcb3ed51fa6a8bee530347eade84545e543fab # Parent cee5ed3f243a9523053198cff107269f128727f5 Some SVCERRs diff -r cee5ed3f243a -r f2fcb3ed51fa data/fileio/CachedFile.cpp --- a/data/fileio/CachedFile.cpp Tue Jun 12 11:19:40 2018 +0100 +++ b/data/fileio/CachedFile.cpp Thu Jun 21 15:37:27 2018 +0100 @@ -157,7 +157,7 @@ SVDEBUG << "CachedFile::check: Retrieval succeeded" << endl; updateLastRetrieval(true); } else { - cerr << "CachedFile::check: Retrieval failed, will try again later (using existing file for now)" << endl; + SVCERR << "CachedFile::check: Retrieval failed, will try again later (using existing file for now)" << endl; } } } else { @@ -168,7 +168,7 @@ m_ok = true; updateLastRetrieval(true); } else { - cerr << "CachedFile::check: Retrieval failed, remaining in invalid state" << endl; + SVCERR << "CachedFile::check: Retrieval failed, remaining in invalid state" << endl; // again, we don't need to do anything here -- the last // retrieval timestamp is already invalid } @@ -212,7 +212,7 @@ QFile previous(m_localFilename); if (previous.exists()) { if (!previous.remove()) { - cerr << "CachedFile::retrieve: ERROR: Failed to remove previous copy of cached file at \"" << m_localFilename << "\"" << endl; + SVCERR << "CachedFile::retrieve: ERROR: Failed to remove previous copy of cached file at \"" << m_localFilename << "\"" << endl; return false; } } @@ -222,7 +222,7 @@ //!!! disk space left) if (!tempFile.copy(m_localFilename)) { - cerr << "CachedFile::retrieve: ERROR: Failed to copy newly retrieved file from \"" << tempName << "\" to \"" << m_localFilename << "\"" << endl; + SVCERR << "CachedFile::retrieve: ERROR: Failed to copy newly retrieved file from \"" << tempName << "\" to \"" << m_localFilename << "\"" << endl; return false; }