Use MESSAGE for all Logging functor parameters.
see https://gitlab.com/tezos/tezos/merge_requests/411#note_83833997
This commit is contained in:
parent
634c398a70
commit
135cb2c326
@ -175,7 +175,7 @@ end
|
||||
|
||||
let sections = ref []
|
||||
|
||||
module Make_unregistered(S : sig val name: string end) : LOG = struct
|
||||
module Make_unregistered(S : MESSAGE) : LOG = struct
|
||||
|
||||
let section = Lwt_log_core.Section.make S.name
|
||||
type log_section += Section
|
||||
@ -218,7 +218,7 @@ module Make_unregistered(S : sig val name: string end) : LOG = struct
|
||||
|
||||
end
|
||||
|
||||
module Make(S : sig val name: string end) : LOG = struct
|
||||
module Make(S : MESSAGE) : LOG = struct
|
||||
|
||||
let () = sections := S.name :: !sections
|
||||
include Make_unregistered(S)
|
||||
|
@ -103,8 +103,8 @@ module Core : sig
|
||||
val worker : string Tag.def
|
||||
end
|
||||
|
||||
module Make(S: sig val name: string end) : LOG
|
||||
module Make_unregistered(S: sig val name: string end) : LOG
|
||||
module Make(S: MESSAGE) : LOG
|
||||
module Make_unregistered(S: MESSAGE) : LOG
|
||||
|
||||
module Make_semantic(S: MESSAGE) : SEMLOG
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user