Skip to content

Commit

Permalink
respect existing string style
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop authored and lrlna committed Aug 10, 2020
1 parent 27b3549 commit fa102fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ndjson.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Log for Logger {
write!(&mut handle, "\"level\":{}", get_level(record.level())).unwrap();
let now = time::UNIX_EPOCH.elapsed().unwrap().as_millis();
write!(&mut handle, ",\"time\":{}", now).unwrap();
write!(&mut handle, r#","msg":"#).unwrap();
write!(&mut handle, ",\"msg\":").unwrap();
serde_json::to_writer(&mut handle, record.args()).unwrap();
format_kv_pairs(&mut handle, &record);
writeln!(&mut handle, "{}", "}").unwrap();
Expand Down

0 comments on commit fa102fd

Please sign in to comment.