diff runner/JAMSFeatureWriter.cpp @ 324:ef03350baec7

Switch some more cerrs to SVCERRs
author Chris Cannam
date Fri, 18 May 2018 11:27:02 +0100
parents e257f776a589
children
line wrap: on
line diff
--- a/runner/JAMSFeatureWriter.cpp	Fri May 18 10:05:03 2018 +0100
+++ b/runner/JAMSFeatureWriter.cpp	Fri May 18 11:27:02 2018 +0100
@@ -20,6 +20,7 @@
 using Vamp::PluginBase;
 
 #include "base/Exceptions.h"
+#include "base/Debug.h"
 #include "rdf/PluginRDFIndexer.h"
 
 #include <QFileInfo>
@@ -82,8 +83,8 @@
         } else if (i->first == "digits") {
             int digits = atoi(i->second.c_str());
             if (digits <= 0 || digits > 100) {
-                cerr << "JAMSFeatureWriter: ERROR: Invalid or out-of-range value for number of significant digits: " << i->second << endl;
-                cerr << "JAMSFeatureWriter: NOTE: Continuing with default settings" << endl;
+                SVCERR << "JAMSFeatureWriter: ERROR: Invalid or out-of-range value for number of significant digits: " << i->second << endl;
+                SVCERR << "JAMSFeatureWriter: NOTE: Continuing with default settings" << endl;
             } else {
                 m_digits = digits;
             }
@@ -338,14 +339,14 @@
     m_rdfDescriptions[pluginId] = PluginRDFDescription(pluginId);
     
     if (m_rdfDescriptions[pluginId].haveDescription()) {
-	cerr << "NOTE: Have RDF description for plugin ID \""
+	SVCERR << "NOTE: Have RDF description for plugin ID \""
 	     << pluginId << "\"" << endl;
     } else {
-	cerr << "NOTE: No RDF description for plugin ID \""
+	SVCERR << "NOTE: No RDF description for plugin ID \""
 	     << pluginId << "\"" << endl;
 	if (!m_network) {
-	    cerr << "      Consider using the --jams-network option to retrieve plugin descriptions"  << endl;
-	    cerr << "      from the network where possible." << endl;
+	    SVCERR << "      Consider using the --jams-network option to retrieve plugin descriptions"  << endl;
+	    SVCERR << "      from the network where possible." << endl;
 	}
     }
 }
@@ -399,14 +400,14 @@
 	    } else if (eventUri == af + "StructuralSegment") {
 		task = SegmentTask;
 	    } else {
-		cerr << "WARNING: Unsupported event type URI <" 
+		SVCERR << "WARNING: Unsupported event type URI <" 
 		     << eventUri << ">, proceeding with UnknownTask type"
 		     << endl;
 	    }
 
 	} else {
 
-	    cerr << "WARNING: Cannot currently write dense or track-level outputs to JAMS format (only sparse ones). Will proceed using UnknownTask type, but this probably isn't going to work" << endl;
+	    SVCERR << "WARNING: Cannot currently write dense or track-level outputs to JAMS format (only sparse ones). Will proceed using UnknownTask type, but this probably isn't going to work" << endl;
 	}
     }