From 20bf87e7492fe6635d685366628dd40523bbc4fc Mon Sep 17 00:00:00 2001 From: Jarno Rajahalme Date: Thu, 28 Sep 2017 18:54:02 -0700 Subject: [PATCH] server: Log filter configuration. Logging filter configuration makes debugging easier. Signed-off-by: Jarno Rajahalme --- source/server/config/network/http_connection_manager.cc | 1 + source/server/listener_manager_impl.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/source/server/config/network/http_connection_manager.cc b/source/server/config/network/http_connection_manager.cc index ca906f9ace9bb..c3abdc8a63d59 100644 --- a/source/server/config/network/http_connection_manager.cc +++ b/source/server/config/network/http_connection_manager.cc @@ -228,6 +228,7 @@ HttpConnectionManagerConfig::HttpConnectionManagerConfig( const Json::ObjectSharedPtr filter_config = MessageUtil::getJsonObjectFromMessage(proto_config.config()); + ENVOY_LOG(debug, " config: {}", filter_config->asJsonString()); // Now see if there is a factory that will accept the config. auto& factory = Config::Utility::getAndCheckFactory(string_name); diff --git a/source/server/listener_manager_impl.cc b/source/server/listener_manager_impl.cc index cb7af4c2c88b1..77a201e092903 100644 --- a/source/server/listener_manager_impl.cc +++ b/source/server/listener_manager_impl.cc @@ -30,6 +30,7 @@ ProdListenerComponentFactory::createFilterFactoryList_( ENVOY_LOG(debug, " name: {}", string_name); const Json::ObjectSharedPtr filter_config = MessageUtil::getJsonObjectFromMessage(proto_config.config()); + ENVOY_LOG(debug, " config: {}", filter_config->asJsonString()); // Now see if there is a factory that will accept the config. auto& factory =