From de609e49f0446bb3a000760d90c3468c54cc1497 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 24 May 2018 22:00:54 +0000 Subject: [PATCH] Improved logging --- include/dba.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/dba.php b/include/dba.php index 7861437834..f915d78373 100644 --- a/include/dba.php +++ b/include/dba.php @@ -494,7 +494,11 @@ echo "1"; if ($errorno == 2006) { if (self::$in_retrial || !self::reconnect()) { // It doesn't make sense to continue when the database connection was lost - logger('Giving up because of database error '.$errorno.': '.$error); + if (self::$in_retrial) { + logger('Giving up retrial because of database error '.$errorno.': '.$error); + } else { + logger("Couldn't reconnect after database error ".$errorno.': '.$error); + } exit(1); } else { // We try it again -- 2.39.5