aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-12 15:52:44 +0100
committerLibravatarLarge Libravatar memdmp <memdmpestrogenzone>2025-03-12 15:52:44 +0100
commitf5c09c3d478d3b1be6c1fc53416649851bcc7fb4 (patch)
tree39e755a871e6b028e95ebcc09dcbf0742c6a7125 /src
parentab0a65111bc7f2bfb9cfa9507f3a8d8231e2c84c (diff)
downloadmem-estrogen-zone-f5c09c3d478d3b1be6c1fc53416649851bcc7fb4.tar.gz
mem-estrogen-zone-f5c09c3d478d3b1be6c1fc53416649851bcc7fb4.tar.bz2
mem-estrogen-zone-f5c09c3d478d3b1be6c1fc53416649851bcc7fb4.tar.lz
mem-estrogen-zone-f5c09c3d478d3b1be6c1fc53416649851bcc7fb4.zip

chore: a debug log for init ks

Diffstat (limited to 'src')
-rw-r--r--src/routes/canaries/keystore.ts19
1 files 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'],