Skip to content

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

chore(channels): add debug logs for inbound message delivery

Steven Enamakeled5abcd7c7f3
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
index 208ef8b976..a8fb39a17a 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor.rs
@@ -144,6 +144,7 @@ pub(crate) async fn run_message_dispatch_loop(
&& admitting.len() + admission_order.waiting() + held < budget => {
match received {
Some(message) => {
+ tracing::debug!(channel = %message.message.channel.id, message_id = %message.message.message_id, "[dispatch] received module inbound message");
let seq = next_seq;
next_seq += 1;
let handle = admitting.spawn(admit_runtime_message(Arc::clone(&ctx), message));
diff --git a/crates/openhuman-core/src/channels/runtime/startup/callback.rs b/crates/openhuman-core/src/channels/runtime/startup/callback.rs
index 0485b50787..b1c7346291 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/callback.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/callback.rs
@@ -87,6 +87,7 @@ impl ChannelHostCallbacks {
if message.channel.id != channel {
return Err(Error::failed("callback channel does not match message"));
}
+ tracing::debug!(channel, message_id = %message.message_id, "[channels] module delivered inbound message");
self.dispatch
.send(RuntimeChannelMessage::with_inbound_envelope(message))
.await