1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Revert "Raise logging dramatically to chase pending event errors"

This commit is contained in:
Travis Ralston
2021-05-02 19:10:47 -06:00
committed by GitHub
parent dc64c34ccb
commit 3fdc25777d
3 changed files with 2 additions and 7 deletions

View File

@@ -2858,8 +2858,7 @@ MatrixClient.prototype._sendCompleteEvent = function(roomId, eventObject, txnId,
} }
const type = localEvent.getType(); const type = localEvent.getType();
// XXX: @@TR: Return to .log (for https://github.com/vector-im/element-web/issues/17090) logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
logger.trace(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
localEvent.setTxnId(txnId); localEvent.setTxnId(txnId);
localEvent.setStatus(EventStatus.SENDING); localEvent.setStatus(EventStatus.SENDING);

View File

@@ -60,8 +60,7 @@ log.methodFactory = function(methodName, logLevel, loggerName) {
* Can be tailored down to specific use cases if needed. * Can be tailored down to specific use cases if needed.
*/ */
export const logger: PrefixedLogger = log.getLogger(DEFAULT_NAMESPACE); export const logger: PrefixedLogger = log.getLogger(DEFAULT_NAMESPACE);
// XXX: @@TR: Return to DEBUG (for https://github.com/vector-im/element-web/issues/17090) logger.setLevel(log.levels.DEBUG);
logger.setLevel(log.levels.TRACE);
interface PrefixedLogger extends Logger { interface PrefixedLogger extends Logger {
withPrefix?: (prefix: string) => PrefixedLogger; withPrefix?: (prefix: string) => PrefixedLogger;

View File

@@ -1257,9 +1257,6 @@ Room.prototype.addPendingEvent = function(event, txnId) {
txnId); txnId);
} }
// XXX: @@TR: Remove logging (for https://github.com/vector-im/element-web/issues/17090)
logger.trace(`addPendingEvent called for txn ${txnId} and event type ${event.getType()}`);
// call setEventMetadata to set up event.sender etc // call setEventMetadata to set up event.sender etc
// as event is shared over all timelineSets, we set up its metadata based // as event is shared over all timelineSets, we set up its metadata based
// on the unfiltered timelineSet. // on the unfiltered timelineSet.