aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/php/ext
diff options
context:
space:
mode:
authorGravatar ZhouyihaiDing <ddyihai@google.com>2018-03-09 12:36:52 -0800
committerGravatar ZhouyihaiDing <ddyihai@google.com>2018-03-09 12:36:52 -0800
commit8993297d1abf57c552fe584561936edcdc50913f (patch)
tree5322072fc82c258778204b364ec8f56c01d86168 /src/php/ext
parent59ea0ae3ebcca0aef5a15c5aa5b4d27b7f3fc9c4 (diff)
php: adding trace for call_credentials callback function
Diffstat (limited to 'src/php/ext')
-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;