Skip to content

Commit

Permalink
Dont pretty print debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hlbarber committed Dec 14, 2021
1 parent e00083a commit 08ddc0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl<'a> AdditionalFieldVisitor<'a> {

impl<'a> Visit for AdditionalFieldVisitor<'a> {
fn record_debug(&mut self, field: &Field, value: &dyn fmt::Debug) {
let value = format!("{:#?}", value);
let value = format!("{:?}", value);
let field_name = field.name();
match field_name {
"version" => self.record_value(field_name, value),
Expand Down Expand Up @@ -95,7 +95,7 @@ impl<'a> Visit for AdditionalFieldVisitor<'a> {

fn record_u64(&mut self, field: &Field, value: u64) {
let field_name = field.name();
match field.name() {
match field_name {
// GELF requires version: String
"version" => self.record_value(field_name, value.to_string()),
// GELF requires host: String
Expand Down

0 comments on commit 08ddc0b

Please sign in to comment.