Skip to content

Commit 804d0cd

Browse files
committed
chore: debug logs
1 parent 97e6286 commit 804d0cd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

infrastructure/evault-core/src/core/protocol/graphql-server.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ export class GraphQLServer {
9292
requestingPlatform: string | null,
9393
webhookPayload: any,
9494
): Promise<void> {
95+
// One log line per dispatch — the same payload goes to every
96+
// target platform, so we log the body once here instead of per
97+
// target. This is the source of truth for "what eVault claims it
98+
// sent"; correlate against receiver logs to find divergence.
99+
try {
100+
const payloadJson = JSON.stringify(webhookPayload);
101+
console.log(
102+
`[webhook] id=${webhookPayload?.id} schemaId=${webhookPayload?.schemaId} w3id=${webhookPayload?.w3id} from=${requestingPlatform ?? "<none>"} payload=${payloadJson}`,
103+
);
104+
} catch {
105+
console.log(
106+
`[webhook] id=${webhookPayload?.id} schemaId=${webhookPayload?.schemaId} payload=<unserializable>`,
107+
);
108+
}
109+
95110
try {
96111
const activePlatforms = await this.getActivePlatforms();
97112

0 commit comments

Comments
 (0)