From: Aaron Schulz Date: Tue, 20 Sep 2016 23:34:09 +0000 (-0700) Subject: Mention the lock name in DatabaseMysqlBase lock() errors X-Git-Tag: 1.31.0-rc.0~5437^2 X-Git-Url: http://git.cyclocoop.org/wiki/images/03.jpg?a=commitdiff_plain;h=c0f79b0c057ef63a05e140a94a2985d17bb6b3a1;p=lhc%2Fweb%2Fwiklou.git Mention the lock name in DatabaseMysqlBase lock() errors Also use warning() instead of debug() Change-Id: I9f5b331072caf29985bfb4319786cc2c5cddf5dd --- diff --git a/includes/libs/rdbms/database/DatabaseMysqlBase.php b/includes/libs/rdbms/database/DatabaseMysqlBase.php index 9be3edee5d..7abfb171f7 100644 --- a/includes/libs/rdbms/database/DatabaseMysqlBase.php +++ b/includes/libs/rdbms/database/DatabaseMysqlBase.php @@ -991,7 +991,7 @@ abstract class DatabaseMysqlBase extends DatabaseBase { return true; } - $this->queryLogger->debug( __METHOD__ . " failed to acquire lock\n" ); + $this->queryLogger->warning( __METHOD__ . " failed to acquire lock '$lockName'\n" ); return false; } @@ -1013,7 +1013,7 @@ abstract class DatabaseMysqlBase extends DatabaseBase { return true; } - $this->queryLogger->debug( __METHOD__ . " failed to release lock\n" ); + $this->queryLogger->warning( __METHOD__ . " failed to release lock '$lockName'\n" ); return false; }