More logging for broken query

This commit is contained in:
Lewis Dale 2023-08-27 21:47:16 +01:00
parent 782c5b4b38
commit a9e8b61e0b

View File

@ -25,7 +25,7 @@ try {
header("Cache-Control: max-age=86400, public");
echo $image;
} catch (\Exception $e) {
$logger->error($e->getMessage());
$logger->error($e->getMessage(), ['exception' => $e, 'path' => $imgPath, 'params' => $params]);
http_response_code(500);
echo "Internal Server Error";
}