https://bugzilla.wikimedia.org/show_bug.cgi?id=56964
Web browser: --- Bug ID: 56964 Summary: Tests: create a logger at DEBUG level to log to a file Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: valhallasw@arctus.nl Classification: Unclassified Mobile Platform: ---
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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56964
Antoine "hashar" Musso hashar@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hashar@free.fr
--- Comment #1 from Antoine "hashar" Musso hashar@free.fr --- Whenever that feature is made possible, we can run the Jenkins job pywikibot-core-tests to use it and archive the resulting log file.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56964
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com
--- Comment #2 from John Mark Vandenberg jayvdb@gmail.com --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=56964
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |ladsgroup@gmail.com Component|General |tests
pywikipedia-bugs@lists.wikimedia.org