Tweak debug() to use name of class in debug output
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Mar 2011 12:52:30 +0000 (12:52 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 3 Mar 2011 12:52:30 +0000 (12:52 +0000)
includes/objectcache/BagOStuff.php

index adb6abc..cfb38a1 100644 (file)
@@ -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" );
                }
        }