diff layer/Colour3DPlotLayer.cpp @ 679:41029a6e55c6

Make some debug output optional
author Chris Cannam
date Thu, 21 Nov 2013 12:59:20 +0000
parents d632a1e87018
children 1a0dfcbffaf1
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.cpp	Mon Nov 04 15:48:05 2013 +0000
+++ b/layer/Colour3DPlotLayer.cpp	Thu Nov 21 12:59:20 2013 +0000
@@ -1350,11 +1350,11 @@
     
     QImage *source = m_cache;
     
-    std::cerr << "modelResolution " << modelResolution << ", srRatio "
+    SVDEBUG << "modelResolution " << modelResolution << ", srRatio "
               << srRatio << ", m_peakResolution " << m_peakResolution
               << ", zoomLevel " << zoomLevel << ", result "
               << ((modelResolution * srRatio * m_peakResolution) / zoomLevel)
-              << std::endl;
+              << endl;
 
     if (m_peaksCache) {
         if (((modelResolution * srRatio * m_peakResolution) / zoomLevel) < 1) {
@@ -1362,10 +1362,10 @@
             source = m_peaksCache;
             modelResolution *= m_peakResolution;
         } else {
-            std::cerr << "not using peaks cache" << std::endl;
+            SVDEBUG << "not using peaks cache" << endl;
         }
     } else {
-        std::cerr << "have no peaks cache" << std::endl;
+        SVDEBUG << "have no peaks cache" << endl;
     }
 
     int psy1i = -1;