mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
only log error in sync loop
This commit is contained in:
parent
3ba20dece1
commit
ac53b9099b
@ -58,7 +58,8 @@ export default class Sync extends EventEmitter {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._isSyncing = false;
|
this._isSyncing = false;
|
||||||
if (!(err instanceof RequestAbortError)) {
|
if (!(err instanceof RequestAbortError)) {
|
||||||
console.error("stopping sync because of error", err.stack);
|
console.error("stopping sync because of error");
|
||||||
|
console.error(err);
|
||||||
this.emit("status", "error", err);
|
this.emit("status", "error", err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -112,7 +113,7 @@ export default class Sync extends EventEmitter {
|
|||||||
await syncTxn.complete();
|
await syncTxn.complete();
|
||||||
console.info("syncTxn committed!!");
|
console.info("syncTxn committed!!");
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("unable to commit sync tranaction", err.message);
|
console.error("unable to commit sync tranaction");
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
// emit room related events after txn has been closed
|
// emit room related events after txn has been closed
|
||||||
|
Loading…
Reference in New Issue
Block a user