Skip to content

Commit 61612b7

Browse files
committed
fix(core): show [swarm-db] source tag in event log
The source tag was being put inside properties instead of at the top level of SSEEventInfo. formatSSEEvent checks event.source, not event.properties.source. Now events from swarm-db polling show [swarm-db] tag instead of [sse].
1 parent e442d57 commit 61612b7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

packages/core/src/world/merged-stream.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,9 @@ export function createMergedWorldStream(config: MergedStreamConfig = {}): Merged
264264
: { raw: event.data }
265265

266266
onEvent({
267+
source: event.source, // Top-level source for formatSSEEvent
267268
type: event.type,
268-
properties: {
269-
...properties,
270-
source: event.source, // Include source tag for CLI display
271-
},
269+
properties,
272270
})
273271
}
274272
}),

0 commit comments

Comments
 (0)