More logging for broken query
This commit is contained in:
parent
782c5b4b38
commit
a9e8b61e0b
@ -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";
|
||||
}
|
Loading…
Reference in New Issue
Block a user