]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Add log messages for LockWatcher use #5190
authorChristian Kamm <mail@ckamm.de>
Thu, 22 Sep 2016 07:57:42 +0000 (09:57 +0200)
committerChristian Kamm <mail@ckamm.de>
Thu, 22 Sep 2016 07:57:42 +0000 (09:57 +0200)
src/gui/lockwatcher.cpp

index 7b12479900d7c1c9e65a5cc1b9b7816f1b584a33..2e01eacfa1082f3b07b05d3ca87bfd95098e9a35 100644 (file)
@@ -15,6 +15,7 @@
 #include "filesystem.h"
 
 #include <QTimer>
+#include <QDebug>
 
 using namespace OCC;
 
@@ -30,6 +31,7 @@ LockWatcher::LockWatcher(QObject* parent)
 
 void LockWatcher::addFile(const QString& path)
 {
+    qDebug() << "Watching for lock of" << path << "being released";
     _watchedPaths.insert(path);
 }
 
@@ -39,6 +41,7 @@ void LockWatcher::checkFiles()
 
     foreach (const QString& path, _watchedPaths) {
         if (!FileSystem::isFileLocked(path)) {
+            qDebug() << "Lock of" << path << "was released";
             emit fileUnlocked(path);
             unlocked.insert(path);
         }