Skip to content

Commit

Permalink
feat log: clean up ansi codes for gooooogle
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Dec 3, 2024
1 parent 0baa66b commit e6aa09b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/log/log_google.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let event_to_json ?(other_fields = []) (ev : Log_event.t) : json =
let { Log_event.lvl; msg; ts; src; meta } = ev in
let labels = List.rev_map (fun (k, v) -> k, `String v) meta in
let labels = ("src", `String src) :: labels in
let msg = Ansi_clean.remove_escape_codes msg in
let fields =
[
"severity", `String (level_to_severity lvl);
Expand Down

0 comments on commit e6aa09b

Please sign in to comment.