Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(agent): cleanup agent's verbosedebug log #896

Merged
merged 2 commits into from
May 15, 2024

Conversation

lavarou
Copy link
Member

@lavarou lavarou commented May 14, 2024

Don't print Stack depth: ... messages. Stack depth can
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.

Don't print `Stack depth: ...` messages unless requested with newrelic.special
show_execute_stack_depth.
@lavarou lavarou requested a review from zsistla May 14, 2024 03:12
@lavarou lavarou self-assigned this May 14, 2024
@newrelic-php-agent-bot
Copy link

newrelic-php-agent-bot commented May 14, 2024

Test Suite Status Result
Multiverse 9/9 passing
SOAK 56/56 passing

@codecov-commenter
Copy link

codecov-commenter commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.79%. Comparing base (d76a34b) to head (957d912).
Report is 1 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #896   +/-   ##
=======================================
  Coverage   78.78%   78.79%           
=======================================
  Files         193      193           
  Lines       27216    27214    -2     
=======================================
  Hits        21443    21443           
+ Misses       5773     5771    -2     
Flag Coverage Δ
agent-for-php-7.0 77.53% <ø> (ø)
agent-for-php-7.1 77.27% <ø> (ø)
agent-for-php-7.2 78.20% <ø> (ø)
agent-for-php-7.3 78.22% <ø> (ø)
agent-for-php-7.4 77.93% <ø> (ø)
agent-for-php-8.0 77.99% <ø> (+<0.01%) ⬆️
agent-for-php-8.1 77.98% <ø> (+<0.01%) ⬆️
agent-for-php-8.2 77.58% <ø> (+<0.01%) ⬆️
agent-for-php-8.3 77.58% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

agent/php_execute.c Outdated Show resolved Hide resolved
Change of strategy: don't print `Stack depth: ...` messages. Stack depth can
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.
@lavarou lavarou merged commit 3d09829 into dev May 15, 2024
62 checks passed
@lavarou lavarou deleted the chore/agent/cleanup-verbosedebug-log branch May 15, 2024 13:30
lavarou added a commit that referenced this pull request Aug 2, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants