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

[FrameworkBundle] Show server:run logs by default#19174

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
fabpot merged 1 commit intosymfony:masterfromnicolas-grekas:server-log
Jun 30, 2016

Conversation

@nicolas-grekas
Copy link
Member

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

I propose to change the default for theserver:run command and showphp -S logs by default.
I really miss them otherwise. The-vvv mode is not suited here, because it adds a uselessERR red prefix.
I do this through a tty when available, so that the output remains colored.

Ping@javiereguiluz@weaverryan since this is mostly a DX issue.

magnusnordlander reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas added the DXDX = Developer eXperience (anything that improves the experience of using Symfony) labelJun 24, 2016
$process->setTty(true);
}
$process->run();
}catch (RuntimeException$e) {
Copy link
Member

Choose a reason for hiding this comment

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

couldn't runtime exceptions happen for other reasons than unsupported tty mode during$process->run();, causing weird cases of running the process twice ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

let's be safe, fixed

$process->disableOutput();
try {
if (OutputInterface::VERBOSITY_NORMAL >$output->getVerbosity()) {
$process->disableOutput();
Copy link
Member

Choose a reason for hiding this comment

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

do we need to have this inside the try/catch ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

no but we need to have thisif/else logic so code is easier this way

Copy link
Member

Choose a reason for hiding this comment

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

the try/cache can be inside theelse (and defining$callback = null; before theif)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

done

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commit7cc6161 intosymfony:masterJun 30, 2016
fabpot added a commit that referenced this pull requestJun 30, 2016
…olas-grekas)This PR was merged into the 3.2-dev branch.Discussion----------[FrameworkBundle] Show server:run logs by default| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -I propose to change the default for the `server:run` command and show `php -S` logs by default.I really miss them otherwise. The `-vvv` mode is not suited here, because it adds a useless ` ERR ` red prefix.I do this through a tty when available, so that the output remains colored.Ping@javiereguiluz@weaverryan since this is mostly a DX issue.Commits-------7cc6161 [FrameworkBundle] Show server:run logs by default
@nicolas-grekasnicolas-grekas deleted the server-log branchJune 30, 2016 15:02
@fabpotfabpot mentioned this pull requestOct 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

DXDX = Developer eXperience (anything that improves the experience of using Symfony)FeatureFrameworkBundleStatus: Needs Review

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@nicolas-grekas@fabpot@stof@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp