From f508a358b1f74b9faaf34057eeedf48dbbac5912 Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Thu, 1 Jun 2023 21:01:15 +0200 Subject: [PATCH] more logging --- .../backend/src/queue/processors/db/import-custom-emojis.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/queue/processors/db/import-custom-emojis.ts b/packages/backend/src/queue/processors/db/import-custom-emojis.ts index 77eb130a54..d80ff988b8 100644 --- a/packages/backend/src/queue/processors/db/import-custom-emojis.ts +++ b/packages/backend/src/queue/processors/db/import-custom-emojis.ts @@ -112,6 +112,8 @@ export async function importCustomEmojis( for (const emojiPath of containedEmojis) { // strip extension and get filename to use as name const name = path.basename(emojiPath, path.extname(emojiPath)); + logger.info(`importing ${name}`) + await Emojis.delete({ name: name, }); @@ -124,6 +126,8 @@ export async function importCustomEmojis( const file = fs.createReadStream(emojiPath); const size = await probeImageSize(file); file.destroy(); + logger.info(`emoji size: ${size.width}x${size.height}`) + await Emojis.insert({ id: genId(), updatedAt: new Date(),