Group lock failed messages in mysql db driver
authorChad Horohoe <chadh@wikimedia.org>
Fri, 3 Nov 2017 16:05:59 +0000 (09:05 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 3 Nov 2017 16:06:12 +0000 (09:06 -0700)
Change-Id: Ia8c993a3c405c37200c6c1a0dbe6b12726def7c1

includes/libs/rdbms/database/DatabaseMysqlBase.php

index 5312a3d..e0ff475 100644 (file)
@@ -1044,7 +1044,8 @@ abstract class DatabaseMysqlBase extends Database {
                        return true;
                }
 
-               $this->queryLogger->warning( __METHOD__ . " failed to acquire lock '$lockName'\n" );
+               $this->queryLogger->warning( __METHOD__ . " failed to acquire lock '{lockname}'",
+                       [ 'lockname' => $lockName ] );
 
                return false;
        }