Lower DatabaseMysqlBase::lock logging to INFO
[lhc/web/wiklou.git] / includes / libs / rdbms / database / DatabaseMysqlBase.php
index 3c4cda5..305a056 100644 (file)
@@ -486,6 +486,10 @@ abstract class DatabaseMysqlBase extends Database {
         */
        abstract protected function mysqlError( $conn = null );
 
+       protected function wasQueryTimeout( $error, $errno ) {
+               return $errno == 2062;
+       }
+
        /**
         * @param string $table
         * @param array $uniqueIndexes
@@ -1040,7 +1044,8 @@ abstract class DatabaseMysqlBase extends Database {
                        return true;
                }
 
-               $this->queryLogger->warning( __METHOD__ . " failed to acquire lock '$lockName'\n" );
+               $this->queryLogger->info( __METHOD__ . " failed to acquire lock '{lockname}'",
+                       [ 'lockname' => $lockName ] );
 
                return false;
        }