Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(core): log only the event name on the bus, not its log detail

M3gA-Mind362ad3ea382e
diff --git a/crates/openhuman-core/src/core/bus.rs b/crates/openhuman-core/src/core/bus.rs
index 9cbe94b1dd..78821bef71 100644
--- a/crates/openhuman-core/src/core/bus.rs
+++ b/crates/openhuman-core/src/core/bus.rs
@@ -176,9 +176,10 @@ pub async fn init() -> tinybus::Result<()> {
/// domain deliberately — its whole purpose is answering "was this event ever
/// published", which a filtered subscriber cannot.
///
-/// It logs the variant name and [`DomainEvent::log_detail`], never the event
-/// itself: payloads carry user content (a channel message, a dictated voice
-/// transcript, a committed turn), which must not reach the log at any level.
+/// It logs the domain and variant name only, never the payload: events carry
+/// user content (a channel message, a dictated voice transcript, a committed
+/// turn, an agent error quoting either), which must not reach the log at any
+/// level.
pub struct TracingSubscriber;
#[async_trait::async_trait]
@@ -191,7 +192,6 @@ impl tinybus::EventHandler<DomainEvent> for TracingSubscriber {
tracing::debug!(
domain = event.domain(),
event = event.variant_name(),
- detail = event.log_detail().as_deref(),
"[bus] event published"
);
}