Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Mark more logs as debug to tidy the console (#11349)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Aug 7, 2023
1 parent 24703ee commit 6a14362
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Presence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/structures/TimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 6a14362

Please sign in to comment.