mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Log events sent to our relay
This commit is contained in:
parent
2ac2a45350
commit
c6848b9ce2
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { logi } from '@soapbox/logi';
|
||||
import { JsonValue } from '@std/json';
|
||||
import {
|
||||
NKinds,
|
||||
NostrClientCLOSE,
|
||||
|
|
@ -64,6 +65,7 @@ function connectStream(socket: WebSocket, ip: string | undefined) {
|
|||
|
||||
const result = n.json().pipe(n.clientMsg()).safeParse(e.data);
|
||||
if (result.success) {
|
||||
logi({ level: 'trace', ns: 'ditto.relay.message', data: result.data as JsonValue });
|
||||
relayMessagesCounter.inc({ verb: result.data[0] });
|
||||
handleMsg(result.data);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue