From 10a2ec8072df62fed9516fea365290f0ab6280b7 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 3 Mar 2011 12:52:30 +0000 Subject: [PATCH] Tweak debug() to use name of class in debug output --- includes/objectcache/BagOStuff.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/objectcache/BagOStuff.php b/includes/objectcache/BagOStuff.php index adb6abcd7b..cfb38a1942 100644 --- a/includes/objectcache/BagOStuff.php +++ b/includes/objectcache/BagOStuff.php @@ -129,7 +129,8 @@ abstract class BagOStuff { public function debug( $text ) { if ( $this->debugMode ) { - wfDebug( "BagOStuff debug: $text\n" ); + $class = get_class( $this ); + wfDebug( "$class debug: $text\n" ); } } -- 2.20.1