Skip to content

Commit a157bb1

Browse files
committed
fix: logfmt needs a \n
1 parent 1e64302 commit a157bb1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

log.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ module State = struct
104104
("facil", facil.Logger.name) ::
105105
pairs
106106
in
107-
Logfmt.to_string pairs
107+
let buf = Buffer.create 32 in
108+
Logfmt.add_to_buffer buf pairs;
109+
Buffer.add_char buf '\n';
110+
Buffer.contents buf
108111

109112
let cur_format = Atomic.make format_simple_full
110113
let set_cur_format f = Atomic.set cur_format f

0 commit comments

Comments
 (0)