test: 🔊 test logging for vivaldi
This commit is contained in:
parent
92758a29f1
commit
6ec14b82a9
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue