You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
Raise logging dramatically to chase pending event errors
For https://github.com/vector-im/element-web/issues/17090 and similar issues This logging is expected to exist no longer than a day.
This commit is contained in:
@@ -2858,7 +2858,8 @@ MatrixClient.prototype._sendCompleteEvent = function(roomId, eventObject, txnId,
|
||||
}
|
||||
|
||||
const type = localEvent.getType();
|
||||
logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
|
||||
// XXX: @@TR: Return to .log (for https://github.com/vector-im/element-web/issues/17090)
|
||||
logger.trace(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
|
||||
|
||||
localEvent.setTxnId(txnId);
|
||||
localEvent.setStatus(EventStatus.SENDING);
|
||||
|
||||
@@ -60,7 +60,8 @@ log.methodFactory = function(methodName, logLevel, loggerName) {
|
||||
* Can be tailored down to specific use cases if needed.
|
||||
*/
|
||||
export const logger: PrefixedLogger = log.getLogger(DEFAULT_NAMESPACE);
|
||||
logger.setLevel(log.levels.DEBUG);
|
||||
// XXX: @@TR: Return to DEBUG (for https://github.com/vector-im/element-web/issues/17090)
|
||||
logger.setLevel(log.levels.TRACE);
|
||||
|
||||
interface PrefixedLogger extends Logger {
|
||||
withPrefix?: (prefix: string) => PrefixedLogger;
|
||||
|
||||
@@ -1257,6 +1257,9 @@ Room.prototype.addPendingEvent = function(event, 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
|
||||
// as event is shared over all timelineSets, we set up its metadata based
|
||||
// on the unfiltered timelineSet.
|
||||
|
||||
Reference in New Issue
Block a user