mirror of
https://github.com/flarum/framework.git
synced 2024-11-27 19:13:37 +08:00
Stop logging errors that use a custom view
Having a custom view implies that a friendly message is displayed to the user, in which case we can bet that the exception won't need to be "debugged" per se.
This commit is contained in:
parent
295a007cd5
commit
903c1e329d
|
@ -81,11 +81,10 @@ class HandleErrorsWithView implements Middleware
|
|||
$status = $errorCode;
|
||||
}
|
||||
|
||||
// Log the exception (with trace)
|
||||
$this->logger->debug($error);
|
||||
|
||||
if (! $this->view->exists($name = "flarum.forum::error.$status")) {
|
||||
$name = 'flarum.forum::error.default';
|
||||
|
||||
$this->logger->error($error);
|
||||
}
|
||||
|
||||
$view = $this->view->make($name)
|
||||
|
|
Loading…
Reference in New Issue
Block a user