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

Method error

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

Source from the content-addressed store, hash-verified

152 }
153
154 pub fn error(&self, message: &str, extra: Option<HashMap<String, String>>) {
155 if self.should_log(LogLevel::Error) {
156 let msg = self.build_message(LogLevel::Error, message, extra.as_ref());
157 if let Ok(mut writer) = self.writer.lock() {
158 let _ = writer.write_all(msg.as_bytes());
159 let _ = writer.flush();
160 }
161 }
162 }
163
164 pub fn tag(&self, key: &str, value: &str) -> TaggedLogger {
165 let mut tags = self.tags.clone();

Callers

nothing calls this directly

Calls 2

should_logMethod · 0.80
build_messageMethod · 0.80

Tested by

no test coverage detected