Skip to content

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

refactor(storage): improve logging in artifact scope check

Steven Enamakel9b09e04fb97b
diff --git a/crates/openhuman-core/src/storage/sessions/workspace.rs b/crates/openhuman-core/src/storage/sessions/workspace.rs
index d6b84da672..e775de69bc 100644
--- a/crates/openhuman-core/src/storage/sessions/workspace.rs
+++ b/crates/openhuman-core/src/storage/sessions/workspace.rs
@@ -259,7 +259,10 @@ pub fn artifact_scoped_for_in(
match backend.for_scope(&scope) {
Ok(scoped) => Some(scoped),
Err(error) => {
- log::warn!("[session_store] artifact scope refused scope={scope}: {error}");
+ log::warn!(
+ "[session_store] artifact scope refused scope={}: {error}",
+ scope.as_str()
+ );
None
}
}
diff --git a/crates/openhuman-core/src/storage/sessions/workspace_tests.rs b/crates/openhuman-core/src/storage/sessions/workspace_tests.rs
index c44588f911..9e7a0e04f0 100644
--- a/crates/openhuman-core/src/storage/sessions/workspace_tests.rs
+++ b/crates/openhuman-core/src/storage/sessions/workspace_tests.rs
@@ -98,14 +98,14 @@ fn artifact_scope_uses_agent_scope_only_for_unprofiled_named_agents() {
DispatchCtx::new(CoreContext::for_test(DomainSet::full(), None).derive_with(overlay))
};
- let named_agent = artifact_scoped_for_in(&ws.path(), &context_for(Some("writer")))
+ let named_agent = artifact_scoped_for_in(ws.path(), &context_for(Some("writer")))
.expect("an unprofiled named agent has a local scope");
assert_eq!(
named_agent.scope(),
&crate::storage::scope_for_agent("writer")
);
- let default_agent = artifact_scoped_for_in(&ws.path(), &context_for(None))
+ let default_agent = artifact_scoped_for_in(ws.path(), &context_for(None))
.expect("the default agent has the local scope");
assert!(default_agent.scope().is_local());
}