changeset 563:0a094020c2d4

Switch off more debug output
author Chris Cannam
date Tue, 28 Feb 2012 14:38:42 +0000
parents 65d77437b5e8
children 39cac58b4f92
files src/fswatcher.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/fswatcher.cpp	Tue Feb 28 14:36:26 2012 +0000
+++ b/src/fswatcher.cpp	Tue Feb 28 14:38:42 2012 +0000
@@ -217,7 +217,9 @@
         // watching the file explicitly, i.e. the file is in the
         // tracked file paths list. So we never want to ignore them
 
+#ifdef DEBUG_FSWATCHER
         std::cerr << "FsWatcher: Tracked file " << path << " has changed" << std::endl;
+#endif
 
         size_t counter = ++m_lastCounter;
         m_changes[path] = counter;
@@ -233,13 +235,17 @@
     QString fn(fi.fileName());
     foreach (QString pfx, m_ignoredPrefixes) {
         if (fn.startsWith(pfx)) {
+#ifdef DEBUG_FSWATCHER
             std::cerr << "(ignoring: " << path << ")" << std::endl;
+#endif
             return true;
         }
     }
     foreach (QString sfx, m_ignoredSuffixes) {
         if (fn.endsWith(sfx)) {
+#ifdef DEBUG_FSWATCHER
             std::cerr << "(ignoring: " << path << ")" << std::endl;
+#endif
             return true;
         }
     }