From 777ac39ec7031b5a47ad3bc0a75970f6031ed190 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 1 Jan 2024 17:47:15 -0600 Subject: [PATCH] debug: improve output for nip05 --- src/utils/nip05.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utils/nip05.ts b/src/utils/nip05.ts index 4fa3808..f885641 100644 --- a/src/utils/nip05.ts +++ b/src/utils/nip05.ts @@ -29,7 +29,8 @@ async function lookup(value: string, opts: LookupOpts = {}): Promise { const result = lookup(value); nip05Cache.set(value, result); + result.then((result) => { + if (result) { + debug(`Found: ${value} is ${result}`); + } else { + debug(`Not found: ${value} is ${result}`); + } + }); + return result; }