Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/122662

Change subject: Adjust debug log for caches being used
......................................................................

Adjust debug log for caches being used

I always found out the debug message listing the cache being in use to
be slightly confusing:

    MemcachedPeclBagOStuff[main] MemcachedPeclBagOStuff[message]
    MemcachedPhpBagOStuff[parser]

Swap the class name and identifier to output:

    main: MemcachedPeclBagOStuff, message: MemcachedPeclBagOStuff,
    parser: MemcachedPhpBagOStuff

Change-Id: If069dec70eb31ed2dafe0e88ec4d4653005ff7e3
---
M includes/Setup.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/62/122662/1

diff --git a/includes/Setup.php b/includes/Setup.php
index e1777b1..20c6021 100644
--- a/includes/Setup.php
+++ b/includes/Setup.php
@@ -517,9 +517,9 @@
 $parserMemc = wfGetParserCacheStorage();
 $wgLangConvMemc = wfGetLangConverterCacheStorage();
 
-wfDebugLog( 'caches', get_class( $wgMemc ) . '[main] ' .
-       get_class( $messageMemc ) . '[message] ' .
-       get_class( $parserMemc ) . '[parser]' );
+wfDebugLog( 'caches', 'main: ' . get_class( $wgMemc ) .
+       ', message: ' . get_class( $messageMemc ) .
+       ', parser: ' . get_class( $parserMemc ) );
 
 wfProfileOut( $fname . '-memcached' );
 

-- 
To view, visit https://gerrit.wikimedia.org/r/122662
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If069dec70eb31ed2dafe0e88ec4d4653005ff7e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Hashar <has...@free.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to