Page MenuHomePhabricator

command-line parameter '-log' and pwb.py not compatible
Closed, DeclinedPublic

Description

Author: dr.trigon

Description:
When using pwb.py together with '-log', e.g. run
$ python pwb.py clean_sandbox.py -simulate -log
we get 2 log files created, namely:

  • 'logs/pwb.log' (wrong)
  • 'logs/pwb.pyclean_sandbox.py-simulate-log.log' (correct)

of which the first is wrong and should not be used at all.

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


Version: compat-(1.0)
Severity: normal

Details

Reference
bz55335

Event Timeline

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

When I attempt this with compat, I only see 'logs/pwb.log', and no 'logs/pwb.pyclean....'.

However I do see other 'pwb.pyxxxx.py.log' files and directories, with latest dates of 4 July 2014, so I suspect the problem still exists.

Irrespective of that, 'pwb.log' is wrong, so I can reproduce at least part of this bug, and it is an important problem if the log files are not given distinct names.

Aklapper lowered the priority of this task from Medium 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.

Does it care? No strong support for old compat anymore.