summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v2/file.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2020-04-19 11:53:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2020-04-19 13:35:37 +0200
commitddf6734dfeac65babf096a3147338f54d712b6e3 (patch)
tree10fbaa1c283e447af6ad5c71f608b30f4d20137c /application/controllers/api/v2/file.php
parentf70b518b503769c8453c9cee8b421189d59f268f (diff)
Log HTTP 500 PublicApiException to error log
These return a 500 HTTP error code and when using a CLI download tool, you might not see the returned HTML error message. To make debugging easier we also log them to the error log. Some extending exceptions also return different error codes (e.g. UserInputException) so we filter these by only logging if the return code is 500. If a user/admin sees that code they likely expect a log entry. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/v2/file.php')
0 files changed, 0 insertions, 0 deletions