mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Minor logging tweaks
This commit is contained in:
parent
ad48e4a787
commit
5b536040ce
2 changed files with 4 additions and 1 deletions
|
|
@ -172,7 +172,7 @@ function getDescendants(eventId: string): Promise<SignedEvent<1>[]> {
|
|||
|
||||
/** Publish an event to the Nostr relay. */
|
||||
function publish(event: SignedEvent, relays = Conf.publishRelays): void {
|
||||
console.log('Publishing event', event);
|
||||
console.log('Publishing event', event, relays);
|
||||
try {
|
||||
getPool().publish(event, relays);
|
||||
} catch (e) {
|
||||
|
|
|
|||
|
|
@ -29,7 +29,10 @@ function trackHashtags(event: Event): void {
|
|||
.filter((tag) => tag[0] === 't')
|
||||
.map((tag) => tag[1]);
|
||||
|
||||
if (!tags.length) return;
|
||||
|
||||
try {
|
||||
console.info('tracking tags:', tags);
|
||||
trends.addTagUsages(event.pubkey, tags, date);
|
||||
} catch (_e) {
|
||||
// do nothing
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue