Remove unused, duplicate function
The function `find_log_rules` in `src/bin_node/node_run_command.ml` is an older duplicate of the one in `Logging_unix`.
This commit is contained in:
parent
9ecc2e517c
commit
67ad47d054
@ -77,18 +77,6 @@ let context_dir data_dir = data_dir // "context"
|
|||||||
let protocol_dir data_dir = data_dir // "protocol"
|
let protocol_dir data_dir = data_dir // "protocol"
|
||||||
let lock_file data_dir = data_dir // "lock"
|
let lock_file data_dir = data_dir // "lock"
|
||||||
|
|
||||||
let find_log_rules default =
|
|
||||||
match Option.try_with (fun () -> Sys.getenv "TEZOS_LOG"),
|
|
||||||
Option.try_with (fun () -> Sys.getenv "LWT_LOG")
|
|
||||||
with
|
|
||||||
| Some rules, None -> "environment variable TEZOS_LOG", Some rules
|
|
||||||
| None, Some rules -> "environment variable LWT_LOG", Some rules
|
|
||||||
| None, None -> "configuration file", default
|
|
||||||
| Some rules, Some _ ->
|
|
||||||
warn "Both environment variables TEZOS_LOG and LWT_LOG \
|
|
||||||
defined, using TEZOS_LOG." ;
|
|
||||||
"environment varible TEZOS_LOG", Some rules
|
|
||||||
|
|
||||||
let init_node ?sandbox ?checkpoint (config : Node_config_file.t) =
|
let init_node ?sandbox ?checkpoint (config : Node_config_file.t) =
|
||||||
let patch_context json ctxt =
|
let patch_context json ctxt =
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user