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
Remove backticks around command name in log message
  • Loading branch information
jameshalsall committed Aug 17, 2016
commit da278e6358eb14c3b94f653ef7a2fddbd65f5240
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
*/
class ExceptionListener implements EventSubscriberInterface
{
/**
* @var LoggerInterface
*/
protected $logger;

/**
Expand Down Expand Up @@ -65,7 +68,7 @@ public function onKernelTerminate(ConsoleTerminateEvent $event)

$input = new ArgvInput(null, $event->getCommand()->getDefinition());

$this->logger->error('Command `{command}` exited with status code {code}', array('command' => (string) $input, 'code' => $exitCode));
$this->logger->error('Command {command} exited with status code {code}', array('command' => (string) $input, 'code' => $exitCode));
}

public static function getSubscribedEvents()
Expand Down
0