1
0
mirror of https://github.com/flarum/core.git synced 2025-10-19 18:56:44 +02:00

Log exceptions in error handler middleware

This commit is contained in:
Franz Liedke
2016-06-12 17:22:28 +09:00
parent 85bd82eab1
commit 1a2174d614
3 changed files with 16 additions and 5 deletions

View File

@@ -41,12 +41,12 @@ class Server extends AbstractServer
event(new ConfigureMiddleware($pipe, $path, $this));
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\DispatchRoute', ['routes' => $app->make('flarum.admin.routes')]));
$pipe->pipe($path, new HandleErrors($errorDir, $app->inDebugMode()));
$pipe->pipe($path, new HandleErrors($errorDir, $app->make('log'), $app->inDebugMode()));
} else {
$app->register('Flarum\Update\UpdateServiceProvider');
$pipe->pipe($path, $app->make('Flarum\Http\Middleware\DispatchRoute', ['routes' => $app->make('flarum.update.routes')]));
$pipe->pipe($path, new HandleErrors($errorDir, true));
$pipe->pipe($path, new HandleErrors($errorDir, $app->make('log'), true));
}
}