From 4ad31873f9e5039918c2db97e6931711bb40aa6d Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 3 Jul 2006 16:45:51 +0000 Subject: [PATCH] nicer debug output --- includes/Article.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index a5430d5478..b6a0b94937 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2277,7 +2277,7 @@ class Article { function tryFileCache() { static $called = false; if( $called ) { - wfDebug( " tryFileCache() -- called twice!?\n" ); + wfDebug( "Article::tryFileCache(): called twice!?\n" ); return; } $called = true; @@ -2285,15 +2285,15 @@ class Article { $touched = $this->mTouched; $cache = new CacheManager( $this->mTitle ); if($cache->isFileCacheGood( $touched )) { - wfDebug( " tryFileCache() - about to load\n" ); + wfDebug( "Article::tryFileCache(): about to load file\n" ); $cache->loadFromFileCache(); return true; } else { - wfDebug( " tryFileCache() - starting buffer\n" ); + wfDebug( "Article::tryFileCache(): starting buffer\n" ); ob_start( array(&$cache, 'saveToFileCache' ) ); } } else { - wfDebug( " tryFileCache() - not cacheable\n" ); + wfDebug( "Article::tryFileCache(): not cacheable\n" ); } } -- 2.20.1