From 529d7f5fe3115b1866952ef2aff48ea9dfafc86f Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 5 Oct 2017 23:13:04 -0700 Subject: [PATCH] Initialize logger min level from logger_impl. --- src/main/native/cpp/InstanceImpl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/native/cpp/InstanceImpl.cpp b/src/main/native/cpp/InstanceImpl.cpp index cee6cc1..9bbd303 100644 --- a/src/main/native/cpp/InstanceImpl.cpp +++ b/src/main/native/cpp/InstanceImpl.cpp @@ -24,7 +24,9 @@ InstanceImpl::InstanceImpl(int inst) rpc_server(inst, logger), storage(entry_notifier, rpc_server, logger), dispatcher(storage, connection_notifier, logger), - ds_client(dispatcher, logger) {} + ds_client(dispatcher, logger) { + logger.set_min_level(logger_impl.GetMinLevel()); +} InstanceImpl::~InstanceImpl() { logger.SetLogger(nullptr); }