Mercurial > hg > svgui
changeset 1240:c2e923aa4015
Add activity log output to debug log too
author | Chris Cannam |
---|---|
date | Wed, 22 Feb 2017 09:53:58 +0000 |
parents | a496986aa61b |
children | b7d3bd4ff43b b10bd0611d16 |
files | widgets/ActivityLog.cpp |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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) {