mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
tweaks
This commit is contained in:
parent
649d4b8aa8
commit
8b9ea57a02
3 changed files with 5 additions and 3 deletions
|
|
@ -145,8 +145,9 @@ module Env () : ENV = struct
|
|||
| Some "info" -> Log_level_info
|
||||
| Some "debug" -> Log_level_debug
|
||||
| Some s ->
|
||||
Printf.eprintf "warning: unknown log level %S\n%!" s;
|
||||
Log_level_none
|
||||
Printf.eprintf "warning: unknown log level %S, defaulting to info\n%!" s;
|
||||
(* log in info level, so we at least don't miss warnings and errors *)
|
||||
Log_level_info
|
||||
| None ->
|
||||
if get_debug_from_env () then
|
||||
Log_level_debug
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ type log_level =
|
|||
| Log_level_debug
|
||||
|
||||
type rest
|
||||
(** Opaque type to force using {!make} while allowing record updates *)
|
||||
(** opaque type to force using {!make} while allowing record updates *)
|
||||
|
||||
type t = {
|
||||
debug: bool; [@alert deprecated "Use log_level instead"]
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
(** @deprecated Use {!Exporter_config} instead *)
|
||||
|
||||
include module type of Exporter_config
|
||||
[@@deprecated "use Exporter_config instead"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue