aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Zhouyihai Ding <ddyihai@google.com>2018-03-14 11:28:16 -0700
committerGravatar GitHub <noreply@github.com>2018-03-14 11:28:16 -0700
commit14050f1fdafaa03f3cf5b865c21a2da1c37bd277 (patch)
tree5927766760711eb2277b35bfb0f0f3fc2062185f /src
parent261448e357e93fad6b581dda3b2dc92215952b1a (diff)
parent8993297d1abf57c552fe584561936edcdc50913f (diff)
Merge pull request #14659 from ZhouyihaiDing/trace_call_plugin
php: adding trace for call_credentials plugin callback function
Diffstat (limited to 'src')
-rw-r--r--src/php/ext/grpc/call_credentials.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/php/ext/grpc/call_credentials.c b/src/php/ext/grpc/call_credentials.c
index 41c488a79c..d96dc7f3b7 100644
--- a/src/php/ext/grpc/call_credentials.c
+++ b/src/php/ext/grpc/call_credentials.c
@@ -35,6 +35,7 @@
#include <grpc/grpc.h>
#include <grpc/grpc_security.h>
+#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
zend_class_entry *grpc_ce_call_credentials;
@@ -178,8 +179,10 @@ int plugin_get_metadata(
PHP_GRPC_DELREF(arg);
+ gpr_log(GPR_INFO, "GRPC_PHP: call credentials plugin function - begin");
/* call the user callback function */
zend_call_function(state->fci, state->fci_cache TSRMLS_CC);
+ gpr_log(GPR_INFO, "GRPC_PHP: call credentials plugin function - end");
*num_creds_md = 0;
*status = GRPC_STATUS_OK;