8000 [WebProfilerBundle] fix context log pre wrap by HeahDude · Pull Request #18059 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WebProfilerBundle] fix context log pre wrap #18059

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

Closed
wants to merge 2 commits into from

Conversation

HeahDude
Copy link
Contributor
@HeahDude HeahDude commented Mar 8, 2016
Q A
Branch master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR -

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

On very long context it is impossible to read or scroll the log.

I don't know if it's the best way to handle it though.

Before:
pre_before

After:
pre_after

@javiereguiluz
Copy link
Member

I'm 👍 for the change. Thanks @HeahDude.

But I have a question: why don't you see the log contents in several lines? This is how I see this:

long_logs

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

I guess because it's an array with a single key value.

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

No, in fact I don't know :)

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

Ok I think I found it, working on a patch ;)

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

I pushed a second commit 209c819 which fixes it, now looks like:
after_2

@javiereguiluz
Copy link
Member

Thanks for working on this. However, I'm not sure about the second commit. The ValueExporter class is used in lots of places. This could "break" other things.

Sorry, something went wrong.

@HeahDude
Copy link
Contributor Author
HeahDude commented Mar 8, 2016

@javiereguiluz sure, I understand.

Still, if this class is meant to ease reading while debugging, it may help to not inline arrays just because they don't have nested arrays, my captures are good example.

Let me know if I should keep it like this, discard or squash this commit. Thanks.

@HeahDude HeahDude force-pushed the fix-wdt-log_context_pre branch from 209c819 to 1be25ab Compare March 9, 2016 05:41
@HeahDude
Copy link
Contributor Author

@fabpot What do you think of 1be25ab ? May it "break" things somewhere ?

@fabpot
Copy link
Member
fabpot commented Mar 10, 2016

The ValueExporter class is only used for the profiler, so I think it won't break anything. You can probably browse all the tabs from a profile to confirm that it works well everywhere.

@HeahDude
Copy link
Contributor Author

Thanks, I can confirm. If I'm not wrong my commit only increase readability for inline arrays.

@fabpot
Copy link
Member
fabpot commented Mar 10, 2016

Thank you @HeahDude.

@fabpot fabpot closed this in 464a492 Mar 10, 2016
@HeahDude HeahDude deleted the fix-wdt-log_context_pre branch March 10, 2016 22:40
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
…hDude)

This PR was squashed before being merged into the 3.1-dev branch (closes symfony#18059).

Discussion
----------

[WebProfilerBundle] fix context log pre wrap

| Q             | A
| ------------- | ---
| Branch        | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | -

Commits
-------

6b23861 [WebProfilerBundle] fix context log pre wrap
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.

4 participants
0