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

[HttpKernel] do not stopwatch sections when profiler is disabled #32799

Merged
merged 1 commit into from Jul 29, 2019

Conversation

Tobion
Copy link
Member

@Tobion Tobion commented Jul 29, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

the toolbar and profiler panel disable to profiler which then does not set the X-Debug-Token. so when the header does not exist, do not call the stopwatch methods with null which violates the contract and does not make sense. found with #32242

the toolbar and profiler panel disable to profiler which then does not set the X-Debug-Token. so when the header does not exist, do not call the stopwatch methods with null which violates the contract and does not make sense
@Tobion Tobion force-pushed the fix-stopwatch-sections-disabled-profiler branch from b3d062e to 8718cd1 Compare July 29, 2019 14:31
@xabbuh xabbuh added this to the 3.4 milestone Jul 29, 2019
@Tobion Tobion merged commit 8718cd1 into symfony:3.4 Jul 29, 2019
Tobion added a commit that referenced this pull request Jul 29, 2019
…sabled (Tobion)

This PR was merged into the 3.4 branch.

Discussion
----------

[HttpKernel] do not stopwatch sections when profiler is disabled

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets |
| License       | MIT
| Doc PR        |

the toolbar and profiler panel disable to profiler which then does not set the X-Debug-Token. so when the header does not exist, do not call the stopwatch methods with `null` which violates the contract and does not make sense. found with #32242

Commits
-------

8718cd1 [HttpKernel] do not stopwatch sections when profiler is disabled
@Tobion Tobion deleted the fix-stopwatch-sections-disabled-profiler branch July 29, 2019 15:57
This was referenced Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants