changeset 1486:f2fcb3ed51fa

Some SVCERRs
author Chris Cannam
date Thu, 21 Jun 2018 15:37:27 +0100
parents cee5ed3f243a
children 71202259002d
files data/fileio/CachedFile.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }