* Include timestamp in wfDebugLog breakouts
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 28 Jan 2006 11:42:35 +0000 (11:42 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 28 Jan 2006 11:42:35 +0000 (11:42 +0000)
RELEASE-NOTES
includes/GlobalFunctions.php

index adf76cc..da8050d 100644 (file)
@@ -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 ===
index 607cd0d..d7901d9 100644 (file)
@@ -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 );
        }