Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Debug] Swap dumper services at bootstrap#19647

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:2.7fromlyrixx:debug-invert
Aug 23, 2016

Conversation

@lyrixx
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR

This commit fix a bug when using debug function too soon.
For example, if you call dump function during kernel::boot() the
dump output will be sent to stderr, even in a web context.

With this patch, the data collector is used by default, so the
dump output is send to the WDT. In a CLI context, if dump is used
too soon, the datacollector will buffer it, and release it at the
end of the script. So in this case everything will be visible by the
end used.

This commit fix a bug when using debug function too soon.For example, if you call dump function during kernel::boot() thedump output will be sent to stderr, even in a web context.With this patch, the data collector is used by default, so thedump output is send to the WDT. In a CLI context, if dump is usedtoo soon, the datacollector will buffer it, and release it at theend of the script. So in this case everything will be visible by theend used.
@nicolas-grekas
Copy link
Member

I think you can go one step further and dump the collected bootstrap dumps in the event listener, by forwarding them to the dumper that is injected there.

@lyrixx
Copy link
MemberAuthor

It's not easy because I need to add new "features" into the DumpDataCollector.

So I propose to merge this one, and I will open a new PR for master with your feature.

@nicolas-grekas
Copy link
Member

👍

@nicolas-grekas
Copy link
Member

Thank you@lyrixx.

@nicolas-grekasnicolas-grekas merged commitd80589c intosymfony:2.7Aug 23, 2016
nicolas-grekas added a commit that referenced this pull requestAug 23, 2016
This PR was merged into the 2.7 branch.Discussion----------[Debug] Swap dumper services at bootstrap| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |---This commit fix a bug when using debug function too soon.For example, if you call dump function during kernel::boot() thedump output will be sent to stderr, even in a web context.With this patch, the data collector is used by default, so thedump output is send to the WDT. In a CLI context, if dump is usedtoo soon, the datacollector will buffer it, and release it at theend of the script. So in this case everything will be visible by theend used.Commits-------d80589c [Debug] Swap dumper services at bootstrap
@lyrixxlyrixx deleted the debug-invert branchAugust 23, 2016 08:23
This was referencedSep 2, 2016
nicolas-grekas added a commit that referenced this pull requestAug 9, 2017
…r wiring (ogizanagi)This PR was merged into the 2.7 branch.Discussion----------[DebugBundle] Reword an outdated comment about var dumper wiring| Q             | A| ------------- | ---| Branch?       | 2.7 <!-- see comment below -->| Bug fix?      | no| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->| BC breaks?    | no| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->| Tests pass?   | no| Fixed tickets | N/A <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | N/AThis comment is outdated since#19647, as the default config is now the one used all the way through in HTTP mode, while it's overridden in CLI mode by the `DumpListener` on `console.command` event.Commits-------f876fd9 [DebugBundle] Reword an outdated comment about var dumper wiring
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@lyrixx@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp