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

Method record_debug

crates/openshell-ocsf/src/tracing_layers/shorthand_layer.rs:84–88  ·  view source on GitHub ↗
(&mut self, field: &tracing::field::Field, value: &dyn std::fmt::Debug)

Source from the content-addressed store, hash-verified

82
83impl tracing::field::Visit for MessageVisitor<'_> {
84 fn record_debug(&mut self, field: &tracing::field::Field, value: &dyn std::fmt::Debug) {
85 if field.name() == "message" {
86 *self.0 = format!("{value:?}");
87 }
88 }
89
90 fn record_str(&mut self, field: &tracing::field::Field, value: &str) {
91 if field.name() == "message" {

Callers

nothing calls this directly

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected