Avoid MWDebug usage in DatabaseBase
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 16 Sep 2016 20:57:56 +0000 (13:57 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 18 Sep 2016 01:49:30 +0000 (18:49 -0700)
commit81e8d7af4129eb5623d6042c419d29959ca50628
treea8cda4f531445d53bbb7d1e4344a9d5cff9076f3
parent2155a01fd1b3651e59f4db49661e92c9e86e4f25
Avoid MWDebug usage in DatabaseBase

This class is in /libs and cannot depend on all of MediaWiki.
Replace the call with a simple debug() call instead.

Also, make the legacy logger route/format errors from the two
new DB log types (DBConnection, DBQuery) to the old wfLogDBError
locations, including MWDebug::debugMsg().

Change-Id: I64895d3f5b9a000d8186ab6a6ffb4b76a7e9ff40
includes/db/loadbalancer/LBFactoryMW.php
includes/debug/logger/LegacyLogger.php
includes/libs/rdbms/database/Database.php
tests/phpunit/includes/db/DatabaseTestHelper.php