Page MenuHomePhabricator

maynorc (Chris Maynor)
User

Projects

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Tuesday

  • Clear sailing ahead.

User Details

User Since
May 4 2021, 5:13 AM (91 w, 5 d)
Availability
Available
LDAP User
Chris Maynor
MediaWiki User
Unknown

Recent Activity

May 10 2022

maynorc added a comment to T272088: Logging (pywiki module) always verbose if enabled.

@Xqt , it appears that this issue has now been fixed. I checked that removing the one line changed in your bug fix reproduces the error: https://phabricator.wikimedia.org/T281643

May 10 2022, 3:59 AM · Pywikibot

May 6 2022

maynorc added a comment to T272088: Logging (pywiki module) always verbose if enabled.

Sorry for the delay, hoping to get to it next week.

May 6 2022, 12:23 AM · Pywikibot

Mar 14 2022

maynorc added a comment to T272088: Logging (pywiki module) always verbose if enabled.

I see. 'pywiki' logger will be initialized to level 11 and there is no easy way to change that. As a work-around you can modify the logger after it was initialized e.g.

import logging
import pywikibot
pywikibot.output('This will initialize the logger')
logger = logging.getLogger('pywiki')
logger.setLevel(logging.WARNING)
pywikibot.output('This message will not be logged anymore')
pywikibot.log('Also verbose lgs are hidden')
pywikibot.warning('Warnings are still logged')
pywikibot.error('Errors are logged too.)

This workaround did not work for me :/

I commented out the whole content of bot.py: writelogheader() and that did the trick!

Mar 14 2022, 5:28 AM · Pywikibot

Mar 12 2022

maynorc added a comment to T283808: pywikibot.output seems not to use either sys.stdout nor sys.stderr.

@Xqt does redirection work now that you have the non-dunderscored streams available as a backup in the patch now?

Mar 12 2022, 9:58 PM · Pywikibot

Jan 29 2022

So9q awarded T272088: Logging (pywiki module) always verbose if enabled a Like token.
Jan 29 2022, 8:30 PM · Pywikibot

Dec 19 2021

maynorc added a comment to T283808: pywikibot.output seems not to use either sys.stdout nor sys.stderr.

@Xqt, that is very interesting. I checked out both my commit, and the commit before your revert, and see this when performing your command above, which has all of the coloring and the correct printing

image.png (1×1 px, 868 KB)

I notice you're on a Windows machine, while I'm on Unix, so probably why I can't reproduce. I will look more into this

Dec 19 2021, 5:12 PM · Pywikibot

Dec 8 2021

maynorc claimed T272088: Logging (pywiki module) always verbose if enabled.
Dec 8 2021, 8:46 PM · Pywikibot

Dec 6 2021

maynorc added a comment to T272088: Logging (pywiki module) always verbose if enabled.

'pywiki' logger will be initialized to level 11 and there is no easy way to change that

Dec 6 2021, 9:45 PM · Pywikibot
maynorc added a member for Pywikibot: maynorc.
Dec 6 2021, 4:11 AM

Jun 12 2021

maynorc claimed T283808: pywikibot.output seems not to use either sys.stdout nor sys.stderr.
Jun 12 2021, 3:39 PM · Pywikibot

Jun 8 2021

maynorc claimed T239436: Add a generator based on an online list of pages.
Jun 8 2021, 3:50 AM · Pywikibot-pagegenerators.py, Pywikibot

Jun 1 2021

maynorc added a comment to T219282: Unify negative page generators.

@Xqt could you elaborate? I believe I've implement something pretty similar in the latest patch set, except it's 'not:<option>' instead of 'not-<option>'.

Jun 1 2021, 4:12 AM · Patch-Needs-Improvement, good first task, Pywikibot-pagegenerators.py, Pywikibot

May 15 2021

maynorc claimed T219282: Unify negative page generators.
May 15 2021, 6:00 PM · Patch-Needs-Improvement, good first task, Pywikibot-pagegenerators.py, Pywikibot
maynorc added a comment to T219282: Unify negative page generators.

Also, one other pair not mentioned is grep and grepnot, I assume unification is desired here as well

May 15 2021, 12:26 AM · Patch-Needs-Improvement, good first task, Pywikibot-pagegenerators.py, Pywikibot
maynorc added a comment to T219282: Unify negative page generators.

@Dvorapa I'd like to ask for some clarification here. Are you suggesting that it'd be best to drop some negative page generator arguments in favor of a not suffix to positive arguments, i.e.:

May 15 2021, 12:15 AM · Patch-Needs-Improvement, good first task, Pywikibot-pagegenerators.py, Pywikibot

May 11 2021

maynorc claimed T282450: Consider using "in" to compare many values.

Hi, I'm new to the dev community here and would like to work on this task. Is the correct first step here to just claim the task?

May 11 2021, 1:30 AM · good first task, Pywikibot