1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

remove incredibly verbose start/complete sync logging

This commit is contained in:
Matthew Hodgson
2017-03-11 15:06:29 +00:00
parent 2cd5fe2fec
commit 49be37dcf9

View File

@@ -553,14 +553,14 @@ SyncApi.prototype._sync = function(syncOptions) {
} }
if (!isCachedResponse) { if (!isCachedResponse) {
debuglog('Starting sync since=' + syncToken); //debuglog('Starting sync since=' + syncToken);
this._currentSyncRequest = client._http.authedRequest( this._currentSyncRequest = client._http.authedRequest(
undefined, "GET", "/sync", qps, undefined, clientSideTimeoutMs, undefined, "GET", "/sync", qps, undefined, clientSideTimeoutMs,
); );
} }
this._currentSyncRequest.done(function(data) { this._currentSyncRequest.done(function(data) {
debuglog('Completed sync, next_batch=' + data.next_batch); //debuglog('Completed sync, next_batch=' + data.next_batch);
// set the sync token NOW *before* processing the events. We do this so // set the sync token NOW *before* processing the events. We do this so
// if something barfs on an event we can skip it rather than constantly // if something barfs on an event we can skip it rather than constantly