Skip to content

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

chore(channels): log voice media direction and payload size

Steven Enamakelb0731599bcfd
diff --git a/crates/openhuman-core/src/channels/runtime/startup/callback.rs b/crates/openhuman-core/src/channels/runtime/startup/callback.rs
index ab02395caf..9284cec561 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/callback.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/callback.rs
@@ -262,6 +262,8 @@ impl ChannelHostCallbacks {
) -> Result<tinychannels_bus::HostStoreVoiceMediaResult> {
let serialized_len = serde_json::to_vec(&request).map_or(usize::MAX, |bytes| bytes.len());
tracing::debug!(
+ direction = ?request.direction,
+ base64_len = request.audio_base64.len(),
serialized_within_limit = serialized_len <= MAX_VOICE_MEDIA_BYTES,
"scoped channel voice media callback entered"
);