Skip to content

Commit af1170a

Browse files
committed
format invalid installed packages for debug log
1 parent fd3f639 commit af1170a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

agent/lib_composer.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,11 @@ static void nr_execute_handle_autoload_composer_get_packages_information(
149149
}
150150
ZEND_HASH_FOREACH_END();
151151
} else {
152-
nrl_verbosedebug(NRL_INSTRUMENT, "%s - installed packages is not an array",
153-
__func__);
152+
char strbuf[80];
153+
nr_format_zval_for_debug(&retval, strbuf, 0, sizeof(strbuf) - 1, 0);
154+
nrl_verbosedebug(NRL_INSTRUMENT,
155+
"%s - installed packages is: " NRP_FMT ", not an array",
156+
__func__, NRP_ARGSTR(strbuf));
154157
}
155158
zval_dtor(&retval);
156159
}

0 commit comments

Comments
 (0)