summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--public_html/index.php3
2 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 20d415f71..ca67c6f6a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
This file lists major, incompatible or otherwise important changes, you should look at it after every update.
NEXT
+ - Log PublicApiException to error log
3.4.3 2019-12-07
- PHP 7.4 compatibility fixes
diff --git a/public_html/index.php b/public_html/index.php
index dec18a8fd..aa9e12ec4 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -378,6 +378,9 @@ try {
}
redirect("user/login?redirect_uri=".$redirect_uri);
} catch (\exceptions\PublicApiException $e) {
+ if ($e->get_http_error_code() == 500) {
+ \libraries\ExceptionHandler::log_exception($e);
+ }
show_error(nl2br(htmlspecialchars($e->__toString())), $e->get_http_error_code());
} finally {
if ($testname) {