diff widgets/ActivityLog.cpp @ 1324:13d9b422f7fe zoom

Merge from default branch
author Chris Cannam
date Mon, 17 Sep 2018 13:51:31 +0100
parents c2e923aa4015
children
line wrap: on
line diff
--- a/widgets/ActivityLog.cpp	Mon Dec 12 15:18:52 2016 +0000
+++ b/widgets/ActivityLog.cpp	Mon Sep 17 13:51:31 2018 +0100
@@ -30,7 +30,9 @@
 using std::cerr;
 using std::endl;
 
-//#define PRINT_ACTIVITY 1
+#ifndef NO_PRINT_ACTIVITY
+#define PRINT_ACTIVITY 1
+#endif
 
 ActivityLog::ActivityLog() : QDialog()
 {
@@ -62,11 +64,11 @@
     name = name.replace("&", "");
 
 #ifdef PRINT_ACTIVITY
-    cerr << "ActivityLog: " << name;
+    SVDEBUG << "ActivityLog: " << name;
     if (name == m_prevName) {
-        cerr << " (duplicate)";
+        SVDEBUG << " (duplicate)";
     }
-    cerr << endl;
+    SVDEBUG << endl;
 #endif
 
     if (name == m_prevName) {