test: 🔊 test logging for vivaldi

This commit is contained in:
ThatOneCalculator 2023-10-06 17:09:32 -07:00
parent 92758a29f1
commit 6ec14b82a9
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -20,6 +20,13 @@ const logger = new Logger("deliver");
let latest: string | null = null;
export default async (job: Bull.Job<DeliverJobData>) => {
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);