From 7b6e5560e6c29cdd843ea658c4cab3724c368860 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Wed, 22 Jan 2025 12:13:38 -0600 Subject: [PATCH] small fix for logging --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f34293b..65ff91d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -259,8 +259,9 @@ if (SUBSCRIPTION_RELAYS.length > 0) { try { const nsite = parseNsiteEvent(event); if (nsite) { + const log = logger.extend(nip19.npubEncode(nsite.pubkey)); if (NGINX_CACHE_DIR) { - logger(`${nsite.pubkey}: Invalidating ${nsite.path}`); + log(`Invalidating ${nsite.path}`); await invalidatePubkeyPath(nsite.pubkey, nsite.path); }