MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / record_str

Method record_str

crates/openshell-supervisor-process/src/log_push.rs:294–301  ·  view source on GitHub ↗
(&mut self, field: &tracing::field::Field, value: &str)

Source from the content-addressed store, hash-verified

292
293impl tracing::field::Visit for LogVisitor {
294 fn record_str(&mut self, field: &tracing::field::Field, value: &str) {
295 if field.name() == "message" {
296 self.message = Some(value.to_string());
297 } else {
298 self.fields
299 .push((field.name().to_string(), value.to_string()));
300 }
301 }
302
303 fn record_debug(&mut self, field: &tracing::field::Field, value: &dyn std::fmt::Debug) {
304 if field.name() == "message" {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected