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

Commit 6a14362

Browse files
authored
Mark more logs as debug to tidy the console (#11349)
1 parent 24703ee commit 6a14362

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Presence.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class Presence {
103103

104104
try {
105105
await MatrixClientPeg.safeGet().setPresence({ presence: this.state });
106-
logger.info("Presence:", newState);
106+
logger.debug("Presence:", newState);
107107
} catch (err) {
108108
logger.error("Failed to set presence:", err);
109109
this.state = oldState;

src/components/structures/MatrixChat.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
15151515
if (state === SyncState.Syncing && prevState === SyncState.Syncing) {
15161516
return;
15171517
}
1518-
logger.info(`MatrixClient sync state => ${state}`);
1518+
logger.debug(`MatrixClient sync state => ${state}`);
15191519
if (state !== SyncState.Prepared) {
15201520
return;
15211521
}

src/components/structures/TimelinePanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ class TimelinePanel extends React.Component<IProps, IState> {
18051805
this.context.timelineRenderingType,
18061806
);
18071807
if (events.length === 0 || !room || !cli.isRoomEncrypted(room.roomId) || isThreadTimeline) {
1808-
logger.info("checkForPreJoinUISI: showing all messages, skipping check");
1808+
logger.debug("checkForPreJoinUISI: showing all messages, skipping check");
18091809
return 0;
18101810
}
18111811

@@ -1851,12 +1851,12 @@ class TimelinePanel extends React.Component<IProps, IState> {
18511851
// reached an undecryptable message when the user wasn't in the room -- don't try to load any more
18521852
// Note: for now, we assume that events that are being decrypted are
18531853
// not decryptable - we will be called once more when it is decrypted.
1854-
logger.info("checkForPreJoinUISI: reached a pre-join UISI at index ", i);
1854+
logger.debug("checkForPreJoinUISI: reached a pre-join UISI at index ", i);
18551855
return i + 1;
18561856
}
18571857
}
18581858

1859-
logger.info("checkForPreJoinUISI: did not find pre-join UISI");
1859+
logger.debug("checkForPreJoinUISI: did not find pre-join UISI");
18601860
return 0;
18611861
}
18621862

0 commit comments

Comments
 (0)