Also output the event flags in the debug logs
authorKevin Ottens <kevin.ottens@nextcloud.com>
Thu, 22 Oct 2020 11:17:52 +0000 (13:17 +0200)
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>
Mon, 26 Oct 2020 12:37:00 +0000 (12:37 +0000)
When we skip a watcher event on mac, we log the file path but not the
event flags which came with it. Let's add it, it should help figure out
what's going on with #2578.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/gui/folderwatcher_mac.cpp

index 5a2c73c0dbe8bf9c759a6b43cd8348900c42b7f5..988d20377f51a01fe748c674b36393857ddea565 100644 (file)
@@ -72,7 +72,7 @@ static void callback(
         QString fn = qstring.normalized(QString::NormalizationForm_C);
 
         if (!(eventFlags[i] & c_interestingFlags)) {
-            qCDebug(lcFolderWatcher) << "Ignoring non-content changes for" << fn;
+            qCDebug(lcFolderWatcher) << "Ignoring non-content changes for" << fn << eventFlags[i];
             continue;
         }