From 17b6ed19bfa3ae03ff3f713299f3d48ba857fada Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 30 Apr 2005 11:15:52 +0000 Subject: [PATCH] Don't spew error messages everywhere when the debug log file isn't writable. Damn that's annoying. --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 59be1218d8..769d0578a5 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -264,7 +264,7 @@ function wfDebug( $text, $logonly = false ) { $wgOut->debug( $text ); } if ( '' != $wgDebugLogFile && !$wgProfileOnly ) { - error_log( $text, 3, $wgDebugLogFile ); + @error_log( $text, 3, $wgDebugLogFile ); } } -- 2.20.1