Переглянути джерело

Logging: Print instruction when job completed.

Christian Kamm 11 роки тому
батько
коміт
9249d6c2f9
1 змінених файлів з 3 додано та 2 видалено
  1. 3 2
      src/libsync/syncengine.cpp

+ 3 - 2
src/libsync/syncengine.cpp

@@ -21,7 +21,6 @@
 #include "syncjournalfilerecord.h"
 #include "discoveryphase.h"
 #include "creds/abstractcredentials.h"
-#include "csync_util.h"
 #include "syncfilestatus.h"
 #include "csync_private.h"
 
@@ -51,6 +50,7 @@
 #ifdef USE_NEON
 extern "C" int owncloud_commit(CSYNC* ctx);
 #endif
+extern "C" const char *csync_instruction_str(enum csync_instructions_e instr);
 
 namespace OCC {
 
@@ -827,7 +827,8 @@ void SyncEngine::setNetworkLimits(int upload, int download)
 
 void SyncEngine::slotJobCompleted(const SyncFileItem &item)
 {
-    qDebug() << Q_FUNC_INFO << item._file << item._status << item._errorString;
+    const char * instruction_str = csync_instruction_str(item._instruction);
+    qDebug() << Q_FUNC_INFO << item._file << instruction_str << item._status << item._errorString;
 
     /* Update the _syncedItems vector */
     int idx = _syncedItems.indexOf(item);