Exclude debug log events marked "private" from MWDebug
authorBryan Davis <bd808@wikimedia.org>
Wed, 30 Dec 2015 18:31:56 +0000 (11:31 -0700)
committerBryan Davis <bd808@wikimedia.org>
Wed, 30 Dec 2015 20:01:37 +0000 (13:01 -0700)
commit459c0e28bf8f4b5566e2000d6738cdb9bd779973
tree44f147ceb0faf9b550e7be5d366d9585e90b0763
parent751fa3581e6f6c86340f9889a39a2d1fc238760b
Exclude debug log events marked "private" from MWDebug

Respect the "private" context variable for debug log events when passing
events from MediaWiki\Logger\LegacyLogger to MWDebug::debugMsg. Passing
debug log events marked as private to MWDebug  was a regression
introduced by the PSR-3 logging system.

Restore handling of $dest argument to wfDebug which was removed in 1.25
with the PSR-3 logging conversion. The documentation for $dest = 'log'
has also been removed. This third debug log event handling option was
not implemented in the PSR-3 logging conversion in 1.25. A follow up
change will remove known usage of $dest = 'log' in core.

Bug: T122644
Change-Id: Ib1d999b8b54e584e3944b46e9163a700f11c2e72
includes/GlobalFunctions.php
includes/debug/logger/LegacyLogger.php