# HG changeset patch # User Chris Cannam # Date 1330439922 0 # Node ID 0a094020c2d4263d92047c7385357771ba03ee22 # Parent 65d77437b5e898f1e8392019ff121ab3496133c8 Switch off more debug output diff -r 65d77437b5e8 -r 0a094020c2d4 src/fswatcher.cpp --- 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; } }