MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get_logs

Method get_logs

crates/opencode-mcp/src/client.rs:869–876  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

867 }
868
869 pub async fn get_logs(&self, name: &str) -> Vec<String> {
870 self.logs
871 .read()
872 .await
873 .get(name)
874 .cloned()
875 .unwrap_or_default()
876 }
877
878 pub async fn restart(&self, name: &str) -> Result<Arc<McpClient>, McpClientError> {
879 self.log_event(name, "Restart requested").await;

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected