You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Remove noisy debug logs
The debug logs in the sync loop haven't been helpful so far, and they are quite noisy pushing other logs out of the way, so this change removes them.
This commit is contained in:
@@ -711,7 +711,6 @@ SyncApi.prototype._syncFromCache = async function(savedSync) {
|
||||
* @param {boolean} syncOptions.hasSyncedBefore
|
||||
*/
|
||||
SyncApi.prototype._sync = async function(syncOptions) {
|
||||
debuglog("Starting sync request processing...");
|
||||
const client = this.client;
|
||||
|
||||
if (!this._running) {
|
||||
@@ -750,9 +749,7 @@ SyncApi.prototype._sync = async function(syncOptions) {
|
||||
// Reset after a successful sync
|
||||
this._failedSyncCount = 0;
|
||||
|
||||
debuglog("Storing sync data...");
|
||||
await client.store.setSyncData(data);
|
||||
debuglog("Sync data stored");
|
||||
|
||||
const syncEventData = {
|
||||
oldSyncToken: syncToken,
|
||||
@@ -767,7 +764,6 @@ SyncApi.prototype._sync = async function(syncOptions) {
|
||||
}
|
||||
|
||||
try {
|
||||
debuglog("Processing sync response...");
|
||||
await this._processSyncResponse(syncEventData, data);
|
||||
} catch(e) {
|
||||
// log the exception with stack if we have it, else fall back
|
||||
|
||||
Reference in New Issue
Block a user