r113765 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113764‎ | r113765 | r113766 >
Date:21:34, 13 March 2012
Author:ialex
Status:ok
Tags:
Comment:
Make the debug log output consistent with other usages and only output a message when loading from the database.
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuthUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthUser.php
@@ -1525,17 +1525,14 @@
15261526 return;
15271527 }
15281528
1529 - wfDebugLog( 'CentralAuth', "Loading attached wiki list for global user {$this->mName}." );
1530 -
15311529 if ( isset( $this->mAttachedList ) ) {
1532 - wfDebugLog( 'CentralAuth', "-Found in cache." );
15331530 // We have a list already, probably from the cache.
15341531 $this->mAttachedArray = explode( "\n", $this->mAttachedList );
15351532
15361533 return;
15371534 }
15381535
1539 - wfDebugLog( 'CentralAuth', "-Loading from DB" );
 1536+ wfDebugLog( 'CentralAuth', "Loading attached wiki list for global user {$this->mName} from DB" );
15401537
15411538 $dbw = self::getCentralDB();
15421539

Status & tagging log