From 6ec14b82a9a986e2b327b8abf26e774690c9ec59 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 6 Oct 2023 17:09:32 -0700 Subject: [PATCH] test: :loud_sound: test logging for vivaldi --- packages/backend/src/queue/processors/deliver.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/backend/src/queue/processors/deliver.ts b/packages/backend/src/queue/processors/deliver.ts index 65471a559f..f3a3add431 100644 --- a/packages/backend/src/queue/processors/deliver.ts +++ b/packages/backend/src/queue/processors/deliver.ts @@ -20,6 +20,13 @@ const logger = new Logger("deliver"); let latest: string | null = null; export default async (job: Bull.Job) => { + try { + const testUrl = new URL(job.data.to); + const testHost = toPuny(testUrl.host); + logger.info(`TEST_VIVALDI Delivering ${testUrl}: ${testHost}`); + } catch (e) { + logger.error(`TEST_VIVALDI Couldn't deliver ${job.data.to}: ${e.message}`) + } const { host } = new URL(job.data.to); const puny = toPuny(host);