FIX: Check for _REQUEST
This commit is contained in:
@ -8,7 +8,9 @@ Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface
|
||||
try {
|
||||
$app->run();
|
||||
} catch (Error | Exception $e) {
|
||||
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST')));
|
||||
if (isset($_REQUEST)) {
|
||||
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST')));
|
||||
}
|
||||
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e);
|
||||
throw $e;
|
||||
}
|
||||
|
Reference in New Issue
Block a user