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

pull/28217/head
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 {
await MatrixClientPeg.safeGet().setPresence({ presence: this.state });
logger.info("Presence:", newState);
logger.debug("Presence:", newState);
} catch (err) {
logger.error("Failed to set presence:", err);
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) {
return;
}
logger.info(`MatrixClient sync state => ${state}`);
logger.debug(`MatrixClient sync state => ${state}`);
if (state !== SyncState.Prepared) {
return;
}

View File

@ -1805,7 +1805,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
this.context.timelineRenderingType,
);
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;
}
@ -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
// Note: for now, we assume that events that are being decrypted are
// 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;
}
}
logger.info("checkForPreJoinUISI: did not find pre-join UISI");
logger.debug("checkForPreJoinUISI: did not find pre-join UISI");
return 0;
}