Skip to content

Commit c3f1aeb

Browse files
committed
params
1 parent 2687cdb commit c3f1aeb

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Handler/Logging.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,14 @@ private function collectErrorExceptionData(Throwable $throwable): array
167167
private function collectErrorExceptionExtraData(array $collectedExceptionData, ?RequestInterface $request): array
168168
{
169169
if (! $request instanceof HttpRequest) {
170+
$argv = $_SERVER['argv'];
170171
$serverUrl = php_uname('n');
171-
// todo: get script name and params from cli
172172
$url = $serverUrl . ':' . basename((string) getcwd())
173173
. ' ' . get_current_user()
174-
. '$ ' . PHP_BINARY . ' '; // . $request->getScriptName();
174+
. '$ ' . PHP_BINARY;
175175

176-
//$params = $request->getParams()->toArray();
177-
//unset($params['controller'], $params['action']);
178-
//$request->getParams()->fromArray($params);
179-
//$url .= ' ' . $request->toString();
176+
$params = implode(' ', $argv);
177+
$url .= $params;
180178
} else {
181179
$http = $request->getUri();
182180
$serverUrl = $http->getScheme() . '://' . $http->getHost();

0 commit comments

Comments
 (0)