From 7239cfb91a35f681d774aaa6b19ff8d23df07a47 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 20 Dec 2023 02:21:23 +0300 Subject: [PATCH] Parse log_level in cluster_client --- src/cluster_client.cpp | 2 ++ src/cluster_client.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;