Send the profiler output to the 'profileoutput' log group
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Thu, 27 Mar 2014 09:46:40 +0000 (10:46 +0100)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Fri, 28 Mar 2014 06:39:08 +0000 (07:39 +0100)
commitd966a5266f052bd032ed5c833c2b233c284b28f3
tree08a384d8a531cfc5422b093250d6f052e8c52c21
parent9e413e1b354149c3bfd9e231099736ca1701d1dd
Send the profiler output to the 'profileoutput' log group

And deprecate $wgProfileOnly in the same time.

This has the advantage of allowing profiler output to be separated
from the main debug log file; or even be completely disabled while
keeping the other debugging messages.

Also updated the checks in wfLogProfilingData() to detect the cases
where the output would not be sent anywhere to not execute the
last part of the method which would be useless otherwise.

Backward compatibility with installations having $wgProfileOnly
set to true is kept by moving the log file from $wgDebugLogFile
to $wgDebugLogGroups['profileoutput'] in Setup.php in that case.

Change-Id: I7b35195e527dfa7978b710126ed4599e75dab46b
RELEASE-NOTES-1.23
includes/DefaultSettings.php
includes/GlobalFunctions.php
includes/Setup.php