# HG changeset patch # User Chris Cannam # Date 1487757238 0 # Node ID c2e923aa4015460eabde494546a7e552289c2f01 # Parent a496986aa61bc96c63338928cf26e29ad773ff61 Add activity log output to debug log too diff -r a496986aa61b -r c2e923aa4015 widgets/ActivityLog.cpp --- a/widgets/ActivityLog.cpp Tue Feb 21 11:12:07 2017 +0000 +++ b/widgets/ActivityLog.cpp Wed Feb 22 09:53:58 2017 +0000 @@ -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) {