# HG changeset patch # User Chris Cannam # Date 1597398404 -3600 # Node ID 1089d65c585d5964469791792e2f1d64efd6462a # Parent e136dd3bb5c6bcc18093e0c1439135dc24057c81 Divert some debug output away from stderr diff -r e136dd3bb5c6 -r 1089d65c585d framework/Document.cpp --- a/framework/Document.cpp Wed Aug 05 16:05:51 2020 +0100 +++ b/framework/Document.cpp Fri Aug 14 10:46:44 2020 +0100 @@ -41,7 +41,7 @@ using std::vector; -#define DEBUG_DOCUMENT 1 +//#define DEBUG_DOCUMENT 1 //!!! still need to handle command history, documentRestored/documentModified diff -r e136dd3bb5c6 -r 1089d65c585d framework/MainWindowBase.cpp --- a/framework/MainWindowBase.cpp Wed Aug 05 16:05:51 2020 +0100 +++ b/framework/MainWindowBase.cpp Fri Aug 14 10:46:44 2020 +0100 @@ -2603,7 +2603,7 @@ m_audioIO = breakfastquay::AudioFactory:: createCallbackIO(m_recordTarget, source, preference, errorString); if (m_audioIO) { - SVCERR << "MainWindowBase::createAudioIO: Suspending on creation" << endl; + SVDEBUG << "MainWindowBase::createAudioIO: Suspending on creation" << endl; m_audioIO->suspend(); // start in suspended state m_playSource->setSystemPlaybackTarget(m_audioIO); } else { @@ -2618,7 +2618,7 @@ m_playTarget = breakfastquay::AudioFactory:: createCallbackPlayTarget(source, preference, errorString); if (m_playTarget) { - SVCERR << "MainWindowBase::createAudioIO: Suspending on creation" << endl; + SVDEBUG << "MainWindowBase::createAudioIO: Suspending on creation" << endl; m_playTarget->suspend(); // start in suspended state m_playSource->setSystemPlaybackTarget(m_playTarget); } @@ -3770,7 +3770,7 @@ m_playSource->stop(); - SVCERR << "MainWindowBase::stop: suspending" << endl; + SVDEBUG << "MainWindowBase::stop: suspending" << endl; if (m_audioIO) m_audioIO->suspend(); else if (m_playTarget) m_playTarget->suspend(); diff -r e136dd3bb5c6 -r 1089d65c585d framework/VersionTester.cpp --- a/framework/VersionTester.cpp Wed Aug 05 16:05:51 2020 +0100 +++ b/framework/VersionTester.cpp Fri Aug 14 10:46:44 2020 +0100 @@ -34,7 +34,7 @@ m_nm(new QNetworkAccessManager) { QUrl url(QString("http://%1/%2").arg(hostname).arg(versionFilePath)); - SVCERR << "VersionTester: URL is " << url << endl; + SVDEBUG << "VersionTester: URL is " << url << endl; m_reply = m_nm->get(QNetworkRequest(url)); connect(m_reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(error(QNetworkReply::NetworkError))); @@ -82,7 +82,7 @@ void VersionTester::error(QNetworkReply::NetworkError) { - SVCERR << "VersionTester: error: " << m_reply->errorString() << endl; + SVDEBUG << "VersionTester: error: " << m_reply->errorString() << endl; m_httpFailed = true; } @@ -97,7 +97,7 @@ int status = r->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); if (status / 100 != 2) { - SVCERR << "VersionTester: error: http status = " << status << endl; + SVDEBUG << "VersionTester: error: http status = " << status << endl; return; } @@ -107,9 +107,9 @@ if (lines.empty()) return; QString latestVersion = lines[0]; - SVCERR << "Comparing current version \"" << m_myVersion << "\" with latest version \"" << latestVersion << "\"" << endl; + SVDEBUG << "Comparing current version \"" << m_myVersion << "\" with latest version \"" << latestVersion << "\"" << endl; if (isVersionNewerThan(latestVersion, m_myVersion)) { - SVCERR << "Latest version \"" << latestVersion << "\" is newer than current version \"" << m_myVersion << "\"" << endl; + SVDEBUG << "Latest version \"" << latestVersion << "\" is newer than current version \"" << m_myVersion << "\"" << endl; emit newerVersionAvailable(latestVersion); } }