From 9752313d24260d25c5f4d2f32d317278d1add964 Mon Sep 17 00:00:00 2001 From: goodygh Date: Sat, 29 Apr 2023 02:39:04 +0200 Subject: [PATCH] logger pdo exception handling workaround --- data/web/inc/functions.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index de1855fa..a544d455 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -526,8 +526,9 @@ function logger($_data = false) { ':remote' => get_remote_ip() )); } - catch (Exception $e) { - // Do nothing + catch (PDOException $e) { + # handle the exception here, as the exception handler function results in a white page + error_log($e->getMessage(), 0); } } }