X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;ds=sidebyside;f=includes%2Flibs%2Frdbms%2Fdatabase%2FDatabase.php;h=e04566eb497c9f2b747088902ca92645f5ee6768;hb=720b08b291f91e5059d81642dbf6378963da0c4a;hp=a9dd07483f679ab5116cd0f769f3e5d3e8fdb63f;hpb=28cb34cfae46c29033f10a3b192ec3e5bde3f6b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index a9dd07483f..e04566eb49 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -948,9 +948,8 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware $msg = __METHOD__ . ': lost connection to {dbserver}; reconnected'; $params = [ 'dbserver' => $this->getServer() ]; $this->connLogger->warning( $msg, $params ); - $this->queryLogger->warning( - "$msg:\n" . ( new RuntimeException() )->getTraceAsString(), - $params ); + $this->queryLogger->warning( $msg, $params + + [ 'trace' => ( new RuntimeException() )->getTraceAsString() ] ); if ( !$recoverable ) { # Callers may catch the exception and continue to use the DB