improve server logging for sse and http

This commit is contained in:
Shantur Rathore
2025-12-05 10:53:57 +00:00
parent 617aac8fd8
commit df52ed3035
5 changed files with 55 additions and 4 deletions

View File

@@ -9,7 +9,10 @@ export class EventBus extends EventEmitter {
publish(event: WorkspaceEventPayload): boolean {
if (event.type !== "instance.event" && event.type !== "instance.eventStatus") {
this.logger?.debug({ event }, "Publishing workspace event")
this.logger?.debug({ type: event.type }, "Publishing workspace event")
if (this.logger?.isLevelEnabled("trace")) {
this.logger.trace({ event }, "Workspace event payload")
}
}
return super.emit(event.type, event)
}