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

Show silenced errors in separate tab#16760

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
Tobion merged 1 commit intosymfony:2.8frompeterrehm:profiler-logs
Dec 11, 2015
Merged

Show silenced errors in separate tab#16760

Tobion merged 1 commit intosymfony:2.8frompeterrehm:profiler-logs
Dec 11, 2015

Conversation

@peterrehm
Copy link
Contributor

QA
Bug fix?no
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#16740
LicenseMIT
Doc PR-

Show the silenced errors in a separate tab other than the debug information to reflect also the counts of the toolbar. Also related to@javiereguiluz's comment here#10466 (comment).

bildschirmfoto 2015-11-30 um 16 46 09

bildschirmfoto 2015-11-30 um 16 47 05

@stof
Copy link
Member

this will have to wait for 3.1. It is too late to incorporate such change in 2.8/3.0 IMO, given that the release is today

@peterrehm
Copy link
ContributorAuthor

Would be helpful in case of silenced errors as I experienced them and it is not really a feature, just makes the errors more visible.

@jakzal
Copy link
Contributor

👍 nice touch

status: reviewed

@sstok
Copy link
Contributor

👍

@peterrehm
Copy link
ContributorAuthor

The question is just the target branch. As it is for me more like a bugfix it would be great to get this still into 2.8 to avoid confusion.

@Tobion
Copy link
Contributor

I agree with this PR. But I'd like to see two changes:

  • I would suggest to renameSilenced Errors withSilenced Reports (both in the toolbar and log panel).
    The thing is that "errors" means it is a failure per se. But the silenced reports can also be warnings, info, notices, e.g.@trigger_error('NOTICE', E_USER_NOTICE); which is obviously not an error according according to the log levels.
    Actually doesn't matter to me as you could also argue the other way that everything done viatrigger_error are indeed errors.
  • The actual level of the silenced report is not easily seeable in the silenced tab. Thus I would suggest to add it above the time in the time column. That basically just means convertingcontext.type to theE_... constant names. So where theInfo & Errors tab shows the Log Level, we show theE_... constant names for silenced reports.

If we do above changes, I'd also vote 👍 to merge it in 2.8 as it will prevent confusion due to these changes later.

@peterrehm
Copy link
ContributorAuthor

@Tobion How would you convert the type back to the constant names? Any idea about that?

@Tobion
Copy link
Contributor

Similar tohttps://github.com/symfony/symfony/blob/master/src/Symfony/Component/Debug/ErrorHandler.php#L49-L64 but with the constant names instead. Maybe the named constant should actually be added in thecontext directly. Then you do not need to do this in the view.

@peterrehm
Copy link
ContributorAuthor

I have updated it to include an error_level in the context. This way we can keep the same renderer and I think this provides enough information.@Tobion what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

please rename to$errorNames

@peterrehm
Copy link
ContributorAuthor

@Tobion Updated.

@Tobion
Copy link
Contributor

👍

@Tobion
Copy link
Contributor

@javiereguiluz you agree with this PR as well?

@javiereguiluz
Copy link
Member

@Tobion sure! I love it.@peterrehm thanks for adding this feature.

@Tobion
Copy link
Contributor

Ok to merge in 2.8 as a usability fix (and easier maintanance)? Or must wait for 3.1?

@Tobion
Copy link
Contributor

Tests are failing

@peterrehm
Copy link
ContributorAuthor

Should be fixed now.

@Tobion
Copy link
Contributor

Thank you@peterrehm.

@TobionTobion merged commit81d9b9d intosymfony:2.8Dec 11, 2015
Tobion added a commit that referenced this pull requestDec 11, 2015
This PR was merged into the 2.8 branch.Discussion----------Show silenced errors in separate tab| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#16740| License       | MIT| Doc PR        | -Show the silenced errors in a separate tab other than the debug information to reflect also the counts of the toolbar. Also related to@javiereguiluz's comment here#10466 (comment).<img width="1119" alt="bildschirmfoto 2015-11-30 um 16 46 09" src="https://cloud.githubusercontent.com/assets/2010989/11476234/e7fc71a4-9781-11e5-8c2c-0bee587699de.png"><img width="180" alt="bildschirmfoto 2015-11-30 um 16 47 05" src="https://cloud.githubusercontent.com/assets/2010989/11476256/04957eb4-9782-11e5-8a04-8513f076489c.png">Commits-------81d9b9d Show silenced errors in separate tab
@peterrehmpeterrehm deleted the profiler-logs branchDecember 18, 2015 11:47
This was referencedDec 26, 2015
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.

7 participants

@peterrehm@stof@jakzal@sstok@Tobion@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp