Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shuesken committed Aug 10, 2024
1 parent c380722 commit 084cd7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions validation/repost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ async function publishEvent(
relay: nostrToolsRelay.Relay,
event: VerifiedEvent
) {
console.log("Publishing event…");
await relay.publish(event);
console.log("Event published.");
}

/**
Expand Down
3 changes: 2 additions & 1 deletion validation/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ async function getNip5PubKey(
const nip5PubKey = nip5Json.names[trustrootsUsername];

return nip5PubKey;
} catch {
} catch (e: unknown) {
console.warn(`Could not get nip5 key for ${trustrootsUsername}`, e);
return;
}
}
Expand Down

0 comments on commit 084cd7e

Please sign in to comment.