SyncRunFileLog: Add the requestid
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 24 Apr 2018 11:22:59 +0000 (13:22 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:57:53 +0000 (10:57 +0100)
https://github.com/owncloud/client/pull/6427#issuecomment-383879509

src/gui/syncrunfilelog.cpp

index e3b14d7d4bb1f792860f382f8f16292574fd839e..14250015e654d6f2530347bf6d45ff62db438cae 100644 (file)
@@ -145,8 +145,7 @@ void SyncRunFileLog::start(const QString &folderPath)
         // We are creating a new file, add the note.
         _out << "# timestamp | duration | file | instruction | dir | modtime | etag | "
                 "size | fileId | status | errorString | http result code | "
-                "other size | other modtime | other etag | other fileId | "
-                "other instruction"
+                "other size | other modtime | X-Request-ID"
              << endl;
 
         FileSystem::setFileHidden(filename, true);
@@ -191,9 +190,7 @@ void SyncRunFileLog::logItem(const SyncFileItem &item)
     _out << QString::number(item._httpErrorCode) << L;
     _out << QString::number(item._previousSize) << L;
     _out << QString::number(item._previousModtime) << L;
-    _out /* << other etag (removed) */ << L;
-    _out /* << other fileId (removed) */ << L;
-    _out /* << other instruction (removed) */ << L;
+    _out << item._requestId << L;
 
     _out << endl;
 }