Skip to content

Commit

Permalink
Fix process error with no request
Browse files Browse the repository at this point in the history
  • Loading branch information
m097 committed Apr 6, 2020
1 parent f65c908 commit abe6c19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ErrorsBundle/Manager/ErrorsManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,15 @@ public function proceedErrors()
$error->setUrl($request->getPathInfo());
$error->setReferrer($request->headers->get('referer', ''));
$error->setGlobalVars($request->server->all());
$error->setRequestContent($request->getContent());
} else {
$error->setUrl('');
$error->setReferrer('');
$error->setGlobalVars([]);
$error->setRequestContent('');
}
$error->setBaseHost($this->baseHost);
$error->setHostName(gethostname());
$error->setRequestContent($request->getContent());

$token = $this->tokenStorage->getToken();
if (null !== $token) {
Expand Down

0 comments on commit abe6c19

Please sign in to comment.