Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
quanjielin committed Feb 1, 2019
1 parent b3be571 commit 44d02ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/common/secret/secret_manager_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ class SecretManagerImpl : public SecretManager {
Server::Configuration::TransportSocketFactoryContext& secret_provider_context) {
const std::string map_key = sds_config_source.SerializeAsString() + config_name;

ENVOY_LOG(info, "***config name {}", config_name);
ENVOY_LOG(info, "***sds_config_source {}", sds_config_source.DebugString());

std::shared_ptr<SecretType> secret_provider = dynamic_secret_providers_[map_key].lock();
if (!secret_provider) {
// SdsApi is owned by ListenerImpl and ClusterInfo which are destroyed before
Expand All @@ -62,6 +65,7 @@ class SecretManagerImpl : public SecretManager {
ASSERT(secret_provider_context.initManager() != nullptr);
secret_provider = SecretType::create(secret_provider_context, sds_config_source,
config_name, unregister_secret_provider);
ENVOY_LOG(info, "***add secret provider for {}", config_name);
dynamic_secret_providers_[map_key] = secret_provider;
}
return secret_provider;
Expand Down

0 comments on commit 44d02ab

Please sign in to comment.