From eee80b3ff6ddd3ee4222a0030ab793ea4543c14c Mon Sep 17 00:00:00 2001 From: Namekuji Date: Sun, 2 Jul 2023 02:03:14 -0400 Subject: [PATCH] set log level to debug --- packages/backend/src/misc/emoji-meta.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/misc/emoji-meta.ts b/packages/backend/src/misc/emoji-meta.ts index 0d385f72b..3bcc4262b 100644 --- a/packages/backend/src/misc/emoji-meta.ts +++ b/packages/backend/src/misc/emoji-meta.ts @@ -19,7 +19,7 @@ export async function getEmojiSize(url: string): Promise { await lock.acquire(); try { const key = `getEmojiSize:${url}`; - attempted = await redisClient.get(key) !== null; + attempted = (await redisClient.get(key)) !== null; if (!attempted) { await redisClient.set(key, "done", "EX", 60 * 10); } @@ -33,7 +33,7 @@ export async function getEmojiSize(url: string): Promise { } try { - logger.info(`Retrieving emoji size from ${url}`); + logger.debug(`Retrieving emoji size from ${url}`); const { width, height, mime } = await probeImageSize(url, { timeout: 5000, });