Turn a wfDebug call in MessageCache::get into a wfDebugLog call
authorOri Livneh <ori@wikimedia.org>
Fri, 3 Oct 2014 03:52:05 +0000 (20:52 -0700)
committerOri Livneh <ori@wikimedia.org>
Fri, 3 Oct 2014 03:52:05 +0000 (20:52 -0700)
It's a very hot code path, so it makes sense to be able to dive into it in
detail, and having a discrete log bucket makes that easier to do.

Change-Id: I4b547e97711b9e45a99f7b747d785690c70883ec

includes/cache/MessageCache.php

index 1ef7cc5..99dafa6 100644 (file)
@@ -422,7 +422,7 @@ class MessageCache {
                        $this->mLoadedLanguages[$code] = true;
                }
                $info = implode( ', ', $where );
-               wfDebug( __METHOD__ . ": Loading $code... $info\n" );
+               wfDebugLog( 'MessageCache', __METHOD__ . ": Loading $code... $info\n" );
                wfProfileOut( __METHOD__ );
 
                return $success;