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

@@ -52,9 +52,10 @@ export class ConfigStore {
this.cache = next
this.loaded = true
this.persist()
const published = Boolean(this.eventBus)
this.eventBus?.publish({ type: "config.appChanged", config: this.cache })
this.logger.info("Config updated")
this.logger.debug({ config: this.cache }, "Config payload")
this.logger.debug({ broadcast: published }, "Config SSE event emitted")
this.logger.trace({ config: this.cache }, "Config payload")
}
private persist() {