Page MenuHomePhabricator

commands.log and terminal-interface-bot.log is written despite -nolog
Open, In Progress, LowPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

python pwb.py -nolog any_script

What happens?:
commands.log and terminal-interface-bot.log is written

What should have happened instead?:
Should not.

Software version (skip for WMF-hosted wikis like Wikipedia): 8.0.0

Other information (browser name/version, screenshots, etc.):
Maybe terminal-interface-bot.log is written from Python shell after importing pywikibot?

Event Timeline

Xqt changed the task status from Open to In Progress.Apr 10 2023, 3:23 PM
Xqt claimed this task.
Xqt triaged this task as Low priority.

Change 907494 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [log] Disable command.log if -nolog option is given

https://gerrit.wikimedia.org/r/907494

Now it works. But if I omit -nolog, wrapper-bot.log is written instead of commands.log. I don't see the source of this change in the patch, was it earlier?

Change 907494 merged by jenkins-bot:

[pywikibot/core@master] [log] Disable command.log if -nolog option is given

https://gerrit.wikimedia.org/r/907494