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
Update console error log with placeholders and context
  • Loading branch information
James Halsall committed Aug 17, 2016
commit 2874431080164cb93062cdf79f7c8972b5d18039
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ public function onKernelTerminate(ConsoleTerminateEvent $event)
return;
}

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

$this->logger->error($message);
$this->logger->error('Command `{command}` exited with status code {code}', array('command' => implode(' ', $_SERVER['argv']), 'code' => $exitCode));
}

public static function getSubscribedEvents()
Expand Down
0