Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Minor fix to error logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Barham committed Dec 13, 2017
1 parent 6944f7d commit e30a3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Middleware/ErrorLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function process(Request $request, Delegate $delegate) : Response
try {
return $delegate->process($request);
} catch (\Throwable $e) {
$this->log->error($e->getMessage(), ['trace' => $e->getTrace(), 'line' => $e->getLine(), 'file' => $e->getFile(), 'code' => $e->getCode()]);
$this->log->error($e->getMessage(), ['trace' => $e->getTraceAsString(), 'line' => $e->getLine(), 'file' => $e->getFile(), 'code' => $e->getCode()]);
throw $e;
}
}
Expand Down

0 comments on commit e30a3a2

Please sign in to comment.