changeset 786:1089d65c585d tip

Divert some debug output away from stderr
author Chris Cannam
date Fri, 14 Aug 2020 10:46:44 +0100
parents e136dd3bb5c6
children
files framework/Document.cpp framework/MainWindowBase.cpp framework/VersionTester.cpp
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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();
--- 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);
     }
 }