From c2ca497c2a14cae9333e6717be12668d5d017aa4 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 28 Jan 2006 11:42:35 +0000 Subject: [PATCH] * Include timestamp in wfDebugLog breakouts --- RELEASE-NOTES | 1 + includes/GlobalFunctions.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index adf76cc9c7..da8050d33d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -577,6 +577,7 @@ fully support the editing toolbar, but was found to be too confusing. optimizer for revision fetches (avoids index scans) * Use revision rate for ETA in dump generation; it tends to be more stable than the per-page count for full-history dumps. +* Include timestamp in wfDebugLog breakouts === Caveats === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 607cd0dc96..d7901d90c1 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -223,7 +223,8 @@ function wfDebugLog( $logGroup, $text, $public = true ) { global $wgDebugLogGroups, $wgDBname; if( $text{strlen( $text ) - 1} != "\n" ) $text .= "\n"; if( isset( $wgDebugLogGroups[$logGroup] ) ) { - @error_log( "$wgDBname: $text", 3, $wgDebugLogGroups[$logGroup] ); + $time = wfTimestamp( TS_DB ); + @error_log( "$time $wgDBname: $text", 3, $wgDebugLogGroups[$logGroup] ); } else if ( $public === true ) { wfDebug( $text, true ); } -- 2.20.1