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

Method info

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

Source from the content-addressed store, hash-verified

132 }
133
134 pub fn info(&self, message: &str, extra: Option<HashMap<String, String>>) {
135 if self.should_log(LogLevel::Info) {
136 let msg = self.build_message(LogLevel::Info, message, extra.as_ref());
137 if let Ok(mut writer) = self.writer.lock() {
138 let _ = writer.write_all(msg.as_bytes());
139 let _ = writer.flush();
140 }
141 }
142 }
143
144 pub fn warn(&self, message: &str, extra: Option<HashMap<String, String>>) {
145 if self.should_log(LogLevel::Warn) {

Callers

nothing calls this directly

Calls 2

should_logMethod · 0.80
build_messageMethod · 0.80

Tested by

no test coverage detected