diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2020-02-27 16:46:03 +0000 |
---|---|---|
committer | Timo Tijhof <krinklemail@gmail.com> | 2020-02-29 18:24:55 +0000 |
commit | 8dfa1624392efa6e584f191e418bbab60200a48f (patch) | |
tree | cf4acc9412124788d5ded80f7202739f30cd9cbe /includes/debug | |
parent | 409a34e89171cd4093a51ab8bfb8171b15159479 (diff) | |
download | mediawikicore-8dfa1624392efa6e584f191e418bbab60200a48f.tar.gz mediawikicore-8dfa1624392efa6e584f191e418bbab60200a48f.zip |
profiler: Remove support for $wgDebugLogGroups['profileoutput']
Profiler outputs should instead be configured via $wgProfiler.
Bug: T245835
Change-Id: Ib27ce8d066bde27596e61491750c508b259746f4
Diffstat (limited to 'includes/debug')
-rw-r--r-- | includes/debug/logger/LegacyLogger.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/includes/debug/logger/LegacyLogger.php b/includes/debug/logger/LegacyLogger.php index 8f33ae05a93f..5021ee4271d4 100644 --- a/includes/debug/logger/LegacyLogger.php +++ b/includes/debug/logger/LegacyLogger.php @@ -275,34 +275,6 @@ class LegacyLogger extends AbstractLogger { } elseif ( $channel === 'wfLogDBError' ) { $text = self::formatAsWfLogDBError( $channel, $message, $context ); - } elseif ( $channel === 'profileoutput' ) { - // Legacy wfLogProfilingData formatitng - $forward = ''; - if ( isset( $context['forwarded_for'] ) ) { - $forward = " forwarded for {$context['forwarded_for']}"; - } - if ( isset( $context['client_ip'] ) ) { - $forward .= " client IP {$context['client_ip']}"; - } - if ( isset( $context['from'] ) ) { - $forward .= " from {$context['from']}"; - } - if ( $forward ) { - $forward = "\t(proxied via {$context['proxy']}{$forward})"; - } - if ( $context['anon'] ) { - $forward .= ' anon'; - } - if ( !isset( $context['url'] ) ) { - $context['url'] = 'n/a'; - } - - $log = sprintf( "%s\t%04.3f\t%s%s\n", - gmdate( 'YmdHis' ), $context['elapsed'], $context['url'], $forward ); - - $text = self::formatAsWfDebugLog( - $channel, $log . $context['output'], $context ); - } elseif ( !isset( $wgDebugLogGroups[$channel] ) ) { $text = self::formatAsWfDebug( $channel, "[{$channel}] {$message}", $context ); |