diff --git a/src/cluster_client.cpp b/src/cluster_client.cpp index 26847f18..bbe71f36 100644 --- a/src/cluster_client.cpp +++ b/src/cluster_client.cpp @@ -359,6 +359,8 @@ void cluster_client_t::on_load_config_hook(json11::Json::object & etcd_global_co { up_wait_retry_interval = 50; } + // log_level + log_level = config["log_level"].uint64_value(); msgr.parse_config(config); st_cli.parse_config(config); st_cli.load_pgs(); diff --git a/src/cluster_client.h b/src/cluster_client.h index a12a7855..140f7a32 100644 --- a/src/cluster_client.h +++ b/src/cluster_client.h @@ -91,7 +91,7 @@ class cluster_client_t uint64_t client_max_buffered_ops = 0; uint64_t client_max_writeback_iodepth = 0; - int log_level; + int log_level = 0; int up_wait_retry_interval = 500; // ms int retry_timeout_id = 0;