From 6a14362697b342d394061bb64b92458553885ab4 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 7 Aug 2023 09:41:39 +0100 Subject: [PATCH] Mark more logs as debug to tidy the console (#11349) --- src/Presence.ts | 2 +- src/components/structures/MatrixChat.tsx | 2 +- src/components/structures/TimelinePanel.tsx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Presence.ts b/src/Presence.ts index a8ba8b40c4..06efc71317 100644 --- a/src/Presence.ts +++ b/src/Presence.ts @@ -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; diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 64470b6e04..59fe8ab822 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -1515,7 +1515,7 @@ export default class MatrixChat extends React.PureComponent { 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; } diff --git a/src/components/structures/TimelinePanel.tsx b/src/components/structures/TimelinePanel.tsx index 8ad444a7b4..23577d5ca0 100644 --- a/src/components/structures/TimelinePanel.tsx +++ b/src/components/structures/TimelinePanel.tsx @@ -1805,7 +1805,7 @@ class TimelinePanel extends React.Component { 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 { // 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; }