From: Chad Horohoe Date: Thu, 3 Mar 2011 12:52:30 +0000 (+0000) Subject: Tweak debug() to use name of class in debug output X-Git-Tag: 1.31.0-rc.0~31674 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=10a2ec8072df62fed9516fea365290f0ab6280b7;p=lhc%2Fweb%2Fwiklou.git Tweak debug() to use name of class in debug output --- 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" ); } }