From: Brion Vibber Date: Sat, 28 Jan 2006 11:42:35 +0000 (+0000) Subject: * Include timestamp in wfDebugLog breakouts X-Git-Tag: 1.6.0~408 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=c2ca497c2a14cae9333e6717be12668d5d017aa4;p=lhc%2Fweb%2Fwiklou.git * Include timestamp in wfDebugLog breakouts --- 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 ); }