Mark more logs as debug to tidy the console (#11349)

This commit is contained in:
Michael Telatynski 2023-08-07 09:41:39 +01:00 committed by GitHub
parent 24703eea8f
commit 6a14362697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -103,7 +103,7 @@ class Presence {
try { try {
await MatrixClientPeg.safeGet().setPresence({ presence: this.state }); await MatrixClientPeg.safeGet().setPresence({ presence: this.state });
logger.info("Presence:", newState); logger.debug("Presence:", newState);
} catch (err) { } catch (err) {
logger.error("Failed to set presence:", err); logger.error("Failed to set presence:", err);
this.state = oldState; this.state = oldState;

View file

@ -1515,7 +1515,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
if (state === SyncState.Syncing && prevState === SyncState.Syncing) { if (state === SyncState.Syncing && prevState === SyncState.Syncing) {
return; return;
} }
logger.info(`MatrixClient sync state => ${state}`); logger.debug(`MatrixClient sync state => ${state}`);
if (state !== SyncState.Prepared) { if (state !== SyncState.Prepared) {
return; return;
} }

View file

@ -1805,7 +1805,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
this.context.timelineRenderingType, this.context.timelineRenderingType,
); );
if (events.length === 0 || !room || !cli.isRoomEncrypted(room.roomId) || isThreadTimeline) { if (events.length === 0 || !room || !cli.isRoomEncrypted(room.roomId) || isThreadTimeline) {
logger.info("checkForPreJoinUISI: showing all messages, skipping check"); logger.debug("checkForPreJoinUISI: showing all messages, skipping check");
return 0; return 0;
} }
@ -1851,12 +1851,12 @@ class TimelinePanel extends React.Component<IProps, IState> {
// reached an undecryptable message when the user wasn't in the room -- don't try to load any more // reached an undecryptable message when the user wasn't in the room -- don't try to load any more
// Note: for now, we assume that events that are being decrypted are // Note: for now, we assume that events that are being decrypted are
// not decryptable - we will be called once more when it is decrypted. // not decryptable - we will be called once more when it is decrypted.
logger.info("checkForPreJoinUISI: reached a pre-join UISI at index ", i); logger.debug("checkForPreJoinUISI: reached a pre-join UISI at index ", i);
return i + 1; return i + 1;
} }
} }
logger.info("checkForPreJoinUISI: did not find pre-join UISI"); logger.debug("checkForPreJoinUISI: did not find pre-join UISI");
return 0; return 0;
} }