Skip to content

Commit 86c5aa4

Browse files
committed
debugging
1 parent 35987d7 commit 86c5aa4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

agent/fw_drupal8.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ NR_PHP_WRAPPER_END
607607
static bool nr_is_invalid_key_val_arr(nr_php_string_hash_key_t* key,
608608
zval* val,
609609
const char* key_ident) {
610-
if (NULL == key || 0 == ZEND_STRING_LEN(key)) {
610+
nrl_verbosedebug(
611+
NRL_FRAMEWORK, "hook map key: %s",
612+
ZEND_STRING_VALUE(key)) if (NULL == key || 0 == ZEND_STRING_LEN(key)) {
611613
nrl_warning(NRL_FRAMEWORK, "hookImplementationsMap[%s]: invalid key",
612614
key_ident);
613615
return true;
@@ -641,8 +643,6 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
641643
zval* class_val = NULL;
642644
nr_php_string_hash_key_t* method_key = NULL;
643645
zval* module_val = NULL;
644-
zval* dump = NULL;
645-
char* dumpstr = NULL;
646646

647647
char* hookpath = NULL;
648648

@@ -659,9 +659,6 @@ static bool nr_drupal_hook_attribute_instrument(zval* module_handler) {
659659
nrl_verbosedebug(NRL_FRAMEWORK, "failed to identify a valid hook map");
660660
}
661661

662-
dump = nr_php_call(NULL, "var_dump", hook_implementation_map);
663-
dumpstr = nr_strndup(Z_STRVAL_P(dump), Z_STRLEN_P(dump));
664-
nrl_verbosedebug(NRL_FRAMEWORK, "HOOKLIST: %s", dumpstr);
665662
ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(hook_implementation_map), hook_key,
666663
hook_val) {
667664
if (nr_is_invalid_key_val_arr(hook_key, hook_val, "hook")) {

0 commit comments

Comments
 (0)