Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 22, 2017
1 parent 81047e3 commit f1971c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ public function report(Exception $e)
throw $e; // throw the original exception
}

$logger->error($e->getMessage(), array_merge($this->context(), ['exception' => $e]));
$logger->error(
$e->getMessage(),
array_merge($this->context(), ['exception' => $e]
));
}

/**
Expand Down
7 changes: 3 additions & 4 deletions src/Illuminate/Log/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,9 @@ public function getMonolog()
*/
protected function getDefaultFormatter()
{
$lineFormatter = new LineFormatter(null, null, true, true);
$lineFormatter->includeStacktraces();

return $lineFormatter;
return tap(new LineFormatter(null, null, true, true), function ($formatter) {
$formatter->includeStacktraces();
});
}

/**
Expand Down

0 comments on commit f1971c2

Please sign in to comment.