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:
Sebastien Mondet 2018-11-14 17:12:22 -05:00 committed by Benjamin Canou
parent 9ecc2e517c
commit 67ad47d054
No known key found for this signature in database
GPG Key ID: 73607948459DC5F8

View File

@ -77,18 +77,6 @@ let context_dir data_dir = data_dir // "context"
let protocol_dir data_dir = data_dir // "protocol"
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 patch_context json ctxt =
begin