|
@@ -39,6 +39,7 @@
|
|
#include <grpc/support/sync.h>
|
|
#include <grpc/support/sync.h>
|
|
#include <grpc/support/thd.h>
|
|
#include <grpc/support/thd.h>
|
|
#include <grpc/support/useful.h>
|
|
#include <grpc/support/useful.h>
|
|
|
|
+#include "src/core/debug/trace.h"
|
|
#include "src/core/tsi/transport_security.h"
|
|
#include "src/core/tsi/transport_security.h"
|
|
|
|
|
|
#include <openssl/bio.h>
|
|
#include <openssl/bio.h>
|
|
@@ -162,7 +163,7 @@ static const char* ssl_error_string(int error) {
|
|
/* TODO(jboeuf): Remove when we are past the debugging phase with this code. */
|
|
/* TODO(jboeuf): Remove when we are past the debugging phase with this code. */
|
|
static void ssl_log_where_info(const SSL* ssl, int where, int flag,
|
|
static void ssl_log_where_info(const SSL* ssl, int where, int flag,
|
|
const char* msg) {
|
|
const char* msg) {
|
|
- if (where & flag) {
|
|
|
|
|
|
+ if ((where & flag) && (grpc_trace_bits & GRPC_TRACE_SSL)) {
|
|
gpr_log(GPR_INFO, "%20.20s - %30.30s - %5.10s", msg,
|
|
gpr_log(GPR_INFO, "%20.20s - %30.30s - %5.10s", msg,
|
|
SSL_state_string_long(ssl), SSL_state_string(ssl));
|
|
SSL_state_string_long(ssl), SSL_state_string(ssl));
|
|
}
|
|
}
|