Compare commits
5 Commits
1f8d4f0bce
...
1.2.1
Author | SHA1 | Date | |
---|---|---|---|
375b922537 | |||
c400020425 | |||
a76ab77757 | |||
db95b12985 | |||
8648f5a62e |
@ -8,11 +8,6 @@ Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface
|
|||||||
try {
|
try {
|
||||||
$app->run();
|
$app->run();
|
||||||
} catch (Error | Exception $e) {
|
} catch (Error | Exception $e) {
|
||||||
$logger = $app->getContainer()->get(Psr\Log\LoggerInterface::class);
|
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e);
|
||||||
if (isset($_REQUEST)) {
|
|
||||||
$logger->debug(Safe\json_encode(compact('_REQUEST')));
|
|
||||||
}
|
|
||||||
$logger->debug(Safe\json_encode(compact('_SERVER')));
|
|
||||||
$logger->error($e);
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,6 @@ Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface
|
|||||||
try {
|
try {
|
||||||
$app->run();
|
$app->run();
|
||||||
} catch (Error | Exception $e) {
|
} catch (Error | Exception $e) {
|
||||||
$logger = $app->getContainer()->get(Psr\Log\LoggerInterface::class);
|
$app->getContainer()->get(\Psr\Log\LoggerInterface::class)->error($e);
|
||||||
$logger->debug(Safe\json_encode(compact('_SERVER')));
|
|
||||||
$logger->error($e);
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
@ -8,11 +8,7 @@ Monolog\ErrorHandler::register($app->getContainer()->get(Psr\Log\LoggerInterface
|
|||||||
try {
|
try {
|
||||||
$app->run();
|
$app->run();
|
||||||
} catch (Error | Exception $e) {
|
} catch (Error | Exception $e) {
|
||||||
$logger = $app->getContainer()->get(Psr\Log\LoggerInterface::class);
|
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->debug(json_encode(compact('_REQUEST')));
|
||||||
if (isset($_REQUEST)) {
|
$app->getContainer()->get(Psr\Log\LoggerInterface::class)->error($e);
|
||||||
$logger->debug(Safe\json_encode(compact('_REQUEST')));
|
|
||||||
}
|
|
||||||
$logger->debug(Safe\json_encode(compact('_SERVER')));
|
|
||||||
$logger->error($e);
|
|
||||||
throw $e;
|
throw $e;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user