From 23f551884fa0d7624ffd429f0488e41a46a6f3f6 Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Wed, 31 May 2023 12:08:21 +0200 Subject: [PATCH] Less logging of every single WS message + use logger in Meilisearch --- packages/backend/src/db/meilisearch.ts | 2 +- packages/backend/src/server/api/stream/index.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/backend/src/db/meilisearch.ts b/packages/backend/src/db/meilisearch.ts index 01efaa0ba0..33553b64cf 100644 --- a/packages/backend/src/db/meilisearch.ts +++ b/packages/backend/src/db/meilisearch.ts @@ -258,7 +258,7 @@ export default hasConfig primaryKey: "id", }) .then(() => - console.log(`sent ${indexingBatch.length} posts for indexing`), + logger.info(`sent ${indexingBatch.length} posts for indexing`), ); }, serverStats: async () => { diff --git a/packages/backend/src/server/api/stream/index.ts b/packages/backend/src/server/api/stream/index.ts index 055fe200b7..b8482c5686 100644 --- a/packages/backend/src/server/api/stream/index.ts +++ b/packages/backend/src/server/api/stream/index.ts @@ -394,7 +394,6 @@ export default class Connection { * クライアントにメッセージ送信 */ public sendMessageToWs(type: string, payload: any) { - console.log(payload, this.isMastodonCompatible); if (this.isMastodonCompatible) { if (payload.type === "note") { this.wsConnection.send(