From f5c09c3d478d3b1be6c1fc53416649851bcc7fb4 Mon Sep 17 00:00:00 2001 From: memdmp Date: Wed, 12 Mar 2025 15:52:44 +0100 Subject: chore: a debug log for init ks --- src/routes/canaries/keystore.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/routes/canaries/keystore.ts b/src/routes/canaries/keystore.ts index ca8cb22..5da55a4 100644 --- a/src/routes/canaries/keystore.ts +++ b/src/routes/canaries/keystore.ts @@ -6,14 +6,14 @@ const will_debug = true; const debug = dev && will_debug ? (z: any, ...a: any[]) => - console.debug( - ...[ - ...(typeof z === 'string' - ? [`[keystore] ${z}`] - : ['[keystore]', z]), - ...a, - ], - ) + console.debug( + ...[ + ...(typeof z === 'string' + ? [`[keystore] ${z}`] + : ['[keystore]', z]), + ...a, + ], + ) : () => void 0; const _validateSignature = async (message: string, id: string) => { id = id.toUpperCase(); @@ -110,7 +110,7 @@ const pushKey = async ({ if ( expect_fingerprint && parsedKey.getFingerprint().toUpperCase() !== - expect_fingerprint.toUpperCase() + expect_fingerprint.toUpperCase() ) throw new Error( `Key ${parsedKey.getFingerprint()} is not ${expect_fingerprint}`, @@ -133,6 +133,7 @@ const pushKey = async ({ }); }; export const initKeystore = (async () => { + debug('initializing keystore') await pushKey({ key: 'B546778F06BBCC8EC167DB3CD919706487B8B6DE', ids: ['memdmp'], -- cgit v1.2.3