(&mut self, field: &tracing::field::Field, value: &str)
| 292 | |
| 293 | impl 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" { |