Skip to content

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

test(inbound): add opt-in trace logging to linked fixture

Steven Enamakel57e4b5fa1f38
diff --git a/crates/openhuman-core/src/inbound/linked_fixture.rs b/crates/openhuman-core/src/inbound/linked_fixture.rs
index 7a5cee5feb..84f2819cfa 100644
--- a/crates/openhuman-core/src/inbound/linked_fixture.rs
+++ b/crates/openhuman-core/src/inbound/linked_fixture.rs
@@ -366,6 +366,12 @@ impl Rig {
"timer": { "min_interval_ms": 5, "max_interval_ms": 25 },
"storage_callback": binding.unique_name().as_str(),
});
+ if std::env::var_os("OPENHUMAN_TEST_MODULE_TRACE").is_some() {
+ let _ = tracing_subscriber::fmt()
+ .with_max_level(tracing::Level::TRACE)
+ .with_test_writer()
+ .try_init();
+ }
modules
.load_file_with_host_callbacks(&artifact, config, &binding)
.await