Lower DatabaseMysqlBase::lock logging to INFO
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Dec 2017 03:54:08 +0000 (19:54 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Dec 2017 03:56:32 +0000 (03:56 +0000)
Whether the lock() acquisition failing is a huge problem depends
on what the caller is doing. Let the caller do any logging it needs.

Bug: T180793
Change-Id: I3d05138d312d8b973df153bb511e69619d663c9d

includes/libs/rdbms/database/DatabaseMysqlBase.php

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