Last modified: 2012-01-06 18:24:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34787, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32787 - Add database name (mDBname) to wfDebug message
Add database name (mDBname) to wfDebug message
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Database (Other open bugs)
1.18.x
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-03 22:34 UTC by Solitarius
Modified: 2012-01-06 18:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
proposed patch (748 bytes, patch)
2011-12-03 22:36 UTC, Solitarius
Details

Description Solitarius 2011-12-03 22:34:36 UTC
I have extra databases to which my mediawiki connect to.

When the $wgDebugLogFile is activated it's confusing to search for the correct database link without the database name.

I propose we add the database name next to the counter in the wfDebug() message.

example: wfDebug( "Query $this->mDBname($cnt) (master): $sqlx\n" );
Comment 1 Solitarius 2011-12-03 22:36:16 UTC
Created attachment 9605 [details]
proposed patch
Comment 2 Sumana Harihareswara 2011-12-04 03:31:25 UTC
Thank you for the patch, Solitarius.  I have added the "need-review" keyword to indicate that a developer should review your contribution.  If no one reviews it and gives you feedback within about two weeks, please come and nag us via http://webchat.freenode.net/?channels=#mediawiki .  Thanks.
Comment 3 Chad H. 2012-01-06 18:24:21 UTC
Done in r108263.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links