Page MenuHomePhabricator

command-line parameter '-log' and user-config.py switch 'log=' not compatible
Closed, DeclinedPublic

Description

Author: dr.trigon

Description:
When adding following switch to user-config.py:
log = ['*']
and then use it together with '-log', e.g. run
$ python pwb.py clean_sandbox.py -simulate -log
we get a mess in the log file (all lines doubled).

Look also at https://gerrit.wikimedia.org/r/#/c/85411/ .


Version: compat-(1.0)
Severity: minor

Details

Reference
bz55333

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:35 AM
bzimport set Reference to bz55333.
bzimport added a subscriber: Unknown Object (????).

Confirmed in compat; does not occur in core.

While the log output is nasty, the correct information is recorded in the log, twice. Therefore dropping importance/severity.

Aklapper lowered the priority of this task from Low to Lowest.Jun 5 2015, 1:41 PM
Aklapper subscribed.

Pywikibot has two versions: Compat and Core. This task was filed about the older version, called Pywikibot-compat, which is not under active development anymore. Hence I'm lowering the priority of this task to reflect the reality. Unfortunately, the Pywikibot team does not have the manpower to retest every single bug report / feature request against the (maintained) Pywikibot code base. Furthermore, the code base of Pywikibot-Compat has changed a lot compared to the code base of Pywikibot-Core so there is a chance that the problem described in this task might not exist anymore. Please help: Unfortunately manpower is limited and does not allow testing every single reported task again. If you have time and interest in Pywikibot, please upgrade to Pywikibot-Core and add a comment to this task if the problem in this task still happens in Pywikibot-Core (or directly edit the task by removing the Pywikibot-compat project and adding the Pywikibot project to this task). To learn more about Pywikibot and to get involved in its development, please check out https://www.mediawiki.org/wiki/Manual:Pywikibot/Development Thank you for your understanding.

Xqt subscribed.

log = ['*'] logs or all scripts, -log does it for all too. Prevent using -log with general log entry in user-config.py so we shouldn't investigate into that old code.