Skip to content

Commit cb58555

Browse files
committed
debug
1 parent 83401ec commit cb58555

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

google/cloud/storage/internal/grpc/default_options.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ Options DefaultOptionsGrpc(
7272
storage::internal::DefaultOptionsWithCredentials(std::move(options));
7373
if (!options.has<UnifiedCredentialsOption>() &&
7474
!options.has<GrpcCredentialOption>()) {
75+
std::cout << __func__
76+
<< ": !options.has<UnifiedCredentialsOption>() && "
77+
"!options.has<GrpcCredentialOption>()"
78+
<< std::endl;
7579
options.set<UnifiedCredentialsOption>(
7680
google::cloud::MakeGoogleDefaultCredentials(
7781
google::cloud::internal::MakeAuthOptions(options)));
@@ -84,6 +88,8 @@ Options DefaultOptionsGrpc(
8488
// The emulator does not support HTTPS or authentication, use insecure
8589
// (sometimes called "anonymous") credentials, which disable SSL.
8690
options.set<UnifiedCredentialsOption>(MakeInsecureCredentials());
91+
std::cout << __func__ << ": testbench detected forcing InsecureCredentials"
92+
<< std::endl;
8793
}
8894

8995
// gRPC <= 1.64 may crash when metrics are enabled, so we don't enable them by

0 commit comments

Comments
 (0)