mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 14:14:03 +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;
|
$status = $errorCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log the exception (with trace)
|
|
||||||
$this->logger->debug($error);
|
|
||||||
|
|
||||||
if (! $this->view->exists($name = "flarum.forum::error.$status")) {
|
if (! $this->view->exists($name = "flarum.forum::error.$status")) {
|
||||||
$name = 'flarum.forum::error.default';
|
$name = 'flarum.forum::error.default';
|
||||||
|
|
||||||
|
$this->logger->error($error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$view = $this->view->make($name)
|
$view = $this->view->make($name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user