diff runner/AudioDBFeatureWriter.cpp @ 324:ef03350baec7

Switch some more cerrs to SVCERRs
author Chris Cannam
date Fri, 18 May 2018 11:27:02 +0100
parents b3d73c08b6ce
children 0e866ef12d87
line wrap: on
line diff
--- a/runner/AudioDBFeatureWriter.cpp	Fri May 18 10:05:03 2018 +0100
+++ b/runner/AudioDBFeatureWriter.cpp	Fri May 18 11:27:02 2018 +0100
@@ -113,7 +113,7 @@
     //!!! use summaryType
     if (summaryType != "") {
         //!!! IMPLEMENT
-        cerr << "ERROR: AudioDBFeatureWriter::write: Writing summaries is not yet implemented!" << endl;
+        SVCERR << "ERROR: AudioDBFeatureWriter::write: Writing summaries is not yet implemented!" << endl;
         exit(1);
     }
 
@@ -151,7 +151,7 @@
             // - it can be zero, i.e. if the output is really a set of labels + timestamps
             *dbfiles[output.identifier].ofs /*<< ios::binary*/ << output.binCount;
             
-            cerr << "writing bin count " << output.binCount << " for " << output.identifier << endl;
+            SVCERR << "writing bin count " << output.binCount << " for " << output.identifier << endl;
         }
         
         if (replaceDBFile(trackid, output.identifier + ".timestamp"))
@@ -177,11 +177,11 @@
     QString trackBase = QFileInfo(trackid).fileName();
     string filepath = baseDir + "/" + catalogueId  + "/"
         + trackBase.toStdString() + "." + identifier;
-    cerr << "AudioDBFeatureWriter::openDBFile: filepath is \"" << filepath << "\"" << endl;
+    SVCERR << "AudioDBFeatureWriter::openDBFile: filepath is \"" << filepath << "\"" << endl;
     ofstream* ofs = new ofstream(filepath.c_str());
     if (!*ofs)
     {    
-        cerr << "ERROR AudioDBFeatureWriter::openDBFile(): can't open file " << filepath << endl;
+        SVCERR << "ERROR AudioDBFeatureWriter::openDBFile(): can't open file " << filepath << endl;
         return false;
     }
     TrackStream ts;