Commit 1717d020 by amir

Get base logger

parent f17d6738
...@@ -129,7 +129,7 @@ void MSICommandClientZmqImpl::GetMetrics(std::map<std::string, long> &metrics_ma ...@@ -129,7 +129,7 @@ void MSICommandClientZmqImpl::GetMetrics(std::map<std::string, long> &metrics_ma
} }
MSICommandClientZmqImpl::MSICommandClientZmqImpl(const Microservice_ZMQRestClientParams &params) : params_(params){ MSICommandClientZmqImpl::MSICommandClientZmqImpl(const Microservice_ZMQRestClientParams &params) : params_(params){
p_logger_ = Microservice_App::GetInstance()->GetLogger();
p_responseCacheClient_ = new Microservice_ICacheClientPocoImpl<std::uint64_t,CacheEntry>(CACHE_EXPIRATION); p_responseCacheClient_ = new Microservice_ICacheClientPocoImpl<std::uint64_t,CacheEntry>(CACHE_EXPIRATION);
p_requestWorkParams_ = new RequestWorkParams(); p_requestWorkParams_ = new RequestWorkParams();
serverBindAddr_ = params_.GetServer().bindAddress(); serverBindAddr_ = params_.GetServer().bindAddress();
...@@ -188,6 +188,7 @@ void MSICommandClientZmqImpl::HandleResponse(MSICommandClientZmqImpl::ResponseWo ...@@ -188,6 +188,7 @@ void MSICommandClientZmqImpl::HandleResponse(MSICommandClientZmqImpl::ResponseWo
cacheEntry.onResponseFunc(receiveMsg->response()->c_str(), cacheEntry.onResponseFunc(receiveMsg->response()->c_str(),
receiveMsg->response()->size(), receiveMsg->response()->size(),
cacheEntry.cmid); cacheEntry.cmid);
p_responseCacheClient_->del(rcid);
} else { } else {
p_logger_->info("received response to exired Request id: %u ",rcid); p_logger_->info("received response to exired Request id: %u ",rcid);
} }
......
...@@ -75,7 +75,6 @@ private: ...@@ -75,7 +75,6 @@ private:
std::string serverBindAddr_; std::string serverBindAddr_;
zmqpp::context context_; zmqpp::context context_;
ILogger* p_logger_;
ResponseCacheClient* p_responseCacheClient_; ResponseCacheClient* p_responseCacheClient_;
RequestWorkParams* p_requestWorkParams_; RequestWorkParams* p_requestWorkParams_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment