8000 [WIP] [Console] Add basic support for automatic console exception logging by jameshalsall · Pull Request #19382 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP] [Console] Add basic support for automatic console exception logging #19382

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix code style, add TODO
  • Loading branch information
James Halsall committed Aug 17, 2016
commit c21d2065aed7fb2064704b589d7884abc7cd2a5a
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ public function onKernelTerminate(ConsoleTerminateEvent $event)
return;
}

$message = sprintf(
'Command `%s` exited with status code %d',
implode(' ', $_SERVER['argv']),
$exitCode
);
// TODO: replace $_SERVER global usage with data from Input
$message = sprintf('Command `%s` exited with status code %d', implode(' ', $_SERVER['argv']), $exitCode);
Copy link
Contributor

Choose a reason for hiding this comment

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

What about a command placeholder (#15753)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍


$this->logger->error($message);
}
Expand Down
0