Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make sure trace_level is always defined #32802

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

Merged
merged 1 commit into from
Jul 30, 2019
Merged

Make sure trace_level is always defined #32802

merged 1 commit into from
Jul 30, 2019

Conversation

dbu
Copy link
Contributor

@dbu dbu 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 #32801
License MIT
Doc PR -

Fix bug introduced in 9a2fcc9

When running the HttpCache kernel with debug option false and no explicit trace_level, the default does not get initialized. The kernel still unconditionally calls addTraces.

@andrerom found this while looking at tests output of FOSHttpCache: https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/tests/Unit/SymfonyCache/EventDispatchingHttpCacheTest.php
https://travis-ci.org/FriendsOfSymfony/FOSHttpCache/jobs/565046971

@fabpot
Copy link
Member

fabpot commented Jul 30, 2019

Thank you @dbu.

@fabpot fabpot merged commit b80e9b8 into symfony:4.3 Jul 30, 2019
fabpot added a commit that referenced this pull request Jul 30, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

Make sure trace_level is always defined

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

Fix bug introduced in 9a2fcc9

When running the HttpCache kernel with debug option false and no explicit trace_level, the default does not get initialized. The kernel still unconditionally calls addTraces.

@andrerom found this while looking at tests output of FOSHttpCache: https://github.com/FriendsOfSymfony/FOSHttpCache/blob/master/tests/Unit/SymfonyCache/EventDispatchingHttpCacheTest.php
https://travis-ci.org/FriendsOfSymfony/FOSHttpCache/jobs/565046971

Commits
-------

b80e9b8 Make sure trace_level is always defined
@dbu dbu deleted the patch-3 branch August 7, 2019 14:41
@fabpot fabpot mentioned this pull request 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.

3 participants