]> git.mxchange.org Git - friendica.git/commitdiff
Improved logging
authorMichael <heluecht@pirati.ca>
Thu, 24 May 2018 22:00:54 +0000 (22:00 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 24 May 2018 22:00:54 +0000 (22:00 +0000)
include/dba.php

index 7861437834ae2ff12eea41f557954f7628fbc53a..f915d783734f0c03d232e4c5d2f030c77df4ba47 100644 (file)
@@ -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