Skip to content

Commit 3d09829

Browse files
authored
chore(agent): cleanup agent's verbosedebug log (#896)
Don't print `Stack depth: ...` messages. Stack depth can be inferred from the level of indentation used in `nr_php_show_exec` and `nr_php_show_exec_return` - both use `nr_php_show_exec_indentation`, which uses `NRPRG(php_cur_stack_depth)` to calculate indentation level.
1 parent 48bf341 commit 3d09829

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

agent/php_execute.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,9 +2163,6 @@ void nr_php_observer_fcall_begin(zend_execute_data* execute_data) {
21632163
int show_executes = NR_PHP_PROCESS_GLOBALS(special_flags).show_executes;
21642164

21652165
if (nrunlikely(show_executes)) {
2166-
nrl_verbosedebug(NRL_AGENT,
2167-
"Stack depth: %d after OAPI function beginning via %s",
2168-
NRPRG(php_cur_stack_depth), __func__);
21692166
nr_php_show_exec(NR_EXECUTE_ORIG_ARGS);
21702167
}
21712168
nr_php_instrument_func_begin(NR_EXECUTE_ORIG_ARGS);
@@ -2191,9 +2188,6 @@ void nr_php_observer_fcall_end(zend_execute_data* execute_data,
21912188
= NR_PHP_PROCESS_GLOBALS(special_flags).show_execute_returns;
21922189

21932190
if (nrunlikely(show_executes_return)) {
2194-
nrl_verbosedebug(NRL_AGENT,
2195-
"Stack depth: %d before OAPI function exiting via %s",
2196-
NRPRG(php_cur_stack_depth), __func__);
21972191
nr_php_show_exec_return(NR_EXECUTE_ORIG_ARGS TSRMLS_CC);
21982192
}
21992193

0 commit comments

Comments
 (0)