Last modified: 2014-07-24 19:18:37 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 T58964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56964 - Tests: create a logger at DEBUG level to log to a file
Tests: create a logger at DEBUG level to log to a file
Status: NEW
Product: Pywikibot
Classification: Unclassified
tests (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-12 21:58 UTC by Merlijn van Deen (test)
Modified: 2014-07-24 19:18 UTC (History)
3 users (show)

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


Attachments

Description Merlijn van Deen (test) 2013-11-12 21:58:56 UTC
To solve unit test issues, it can be very useful to have a debug log that includes all network connectivity et cetera. This should be fairly easy -- just create a logging hander that catches all logging at level DEBUG (or lower), and stores these to a file.

Basically, this is what -debug does in bot.py:handleArgs.
Comment 1 Antoine "hashar" Musso (WMF) 2013-11-12 22:00:41 UTC
Whenever that feature is made possible, we can run the Jenkins job pywikibot-core-tests to use it and archive the resulting log file.
Comment 2 John Mark Vandenberg 2014-07-08 10:09:55 UTC
https://gerrit.wikimedia.org/r/#/c/144655/ is a basic implementation.  IMO it would be good to have it checked in, and we keep the bug open to address the primary problems with the very large log file.

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


Navigation
Links