Skip to content

Commit

Permalink
feat: Log_event.{to,of}_twine
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Aug 13, 2024
1 parent 75689f5 commit 805aef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/log/log_event.ml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type t = {
src: string; (** Log source. *)
meta: (string * string) list; (** Additional metadata *)
}
[@@deriving show { with_path = false }, serpack]
[@@deriving show { with_path = false }, serpack, twine]
(** A log event, which we can store, serialize, send elsewhere, etc. *)

type json = Yojson.Safe.t
Expand Down
2 changes: 1 addition & 1 deletion src/log/log_level.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type t = Logs.level =
| Warning
| Info
| Debug
[@@deriving show { with_path = false }, enum, eq, ord, serpack]
[@@deriving show { with_path = false }, enum, eq, ord, serpack, twine]

let to_yojson : t -> json = function
| App -> `String "app"
Expand Down

0 comments on commit 805aef8

Please sign in to comment.