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

Method debug

crates/opencode-util/src/logging.rs:124–132  ·  view source on GitHub ↗
(&self, message: &str, extra: Option<HashMap<String, String>>)

Source from the content-addressed store, hash-verified

122 }
123
124 pub fn debug(&self, message: &str, extra: Option<HashMap<String, String>>) {
125 if self.should_log(LogLevel::Debug) {
126 let msg = self.build_message(LogLevel::Debug, message, extra.as_ref());
127 if let Ok(mut writer) = self.writer.lock() {
128 let _ = writer.write_all(msg.as_bytes());
129 let _ = writer.flush();
130 }
131 }
132 }
133
134 pub fn info(&self, message: &str, extra: Option<HashMap<String, String>>) {
135 if self.should_log(LogLevel::Info) {

Callers

nothing calls this directly

Calls 2

should_logMethod · 0.80
build_messageMethod · 0.80

Tested by

no test coverage detected