[Pywikipedia-l] [ pywikipediabot-Bugs-2618858 ] logfiles format

SourceForge.net noreply at sourceforge.net
Thu Feb 26 10:27:17 UTC 2009


Bugs item #2618858, was opened at 2009-02-20 07:39
Message generated for change (Comment added) made by nicdumz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2618858&group_id=93107

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: NicDumZ — Nicolas Dumazet (nicdumz)
Assigned to: Russell Blau (russblau)
Summary: logfiles format

Initial Comment:
output created in pagegenerators log after running "python pywikibot/pagegenerators.py -cat:1918 -debug" contains control characters :

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   Grippe de 1918

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   1918 en bande dessinée

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   Armistice de Moudros

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   Déclaration d'indépendance de la Lituanie

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   Guerre d'indépendance lettone

2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT   1918


and so on...

Also, I find it strange to have terminal_interface logging STDOUT, when in fact pagegenerators is calling output() =)

----------------------------------------------------------------------

>Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-26 11:27

Message:
oh, are you developing under XP ?

For me (and I suppose, Unix users...) r6441 didn't change a thing:

* python pywikibot/pagegenerators.py -cat:1918 -debug       -> no new
lines
* python pywikibot/pagegenerators.py -cat:1918                  -> output
is okay

----------------------------------------------------------------------

Comment By: Russell Blau (russblau)
Date: 2009-02-25 22:37

Message:
> Well, the logs are okay since that rev, but the terminal output is
broken
> now :P

OK, this was really weird.  At least on Windows XP, a line written to
sys.stdout that ends with "\n" instead of "\r\n" doesn't print a newline on
the terminal (in cmd.exe), but the same line written to sys.stderr *does*
print a newline.  Hopefully fixed in r6441, but needs to be tested on other
platforms.


----------------------------------------------------------------------

Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-25 05:06

Message:
To clarify my unclear "I find it strange to have terminal_interface logging
STDOUT, when in
fact pagegenerators is calling output()":
Is it possible to have, instead of :
2009-02-20 15:28:59 terminal_interface.py, 126: STDOUT

2009-02-20 15:28:59 pagegenerators.py, xxx: STDOUT ? I believe that the
file and line calling output() would be more relevant here than the line
calling logging.log !

----------------------------------------------------------------------

Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-02-25 05:01

Message:
Well, the logs are okay since that rev, but the terminal output is broken
now :P

$python pywikibot/pagegenerators.py -cat:1918 -debug
Found 1 wikipedia:fr processes running, including this one.
Password for user DumZiBoT on wikipedia:fr: 
Logging in to wikipedia:fr as DumZiBoT
Should be logged in now
Grippe de 19181918 en bande dessinéeArmistice de MoudrosDéclaration
d'indépendance de la LituanieGuerre d'indépendance lettone19181918 en
Suisse1918 dans les parcs d'attractions1918 en littérature1918 en musique
classiqueInsurrection de Grande-Pologne (1918-1919)Guerres d'indépendance
lituaniennesRéforme d'OctobreGrève générale de 1918 en Suisse1918 dans
les chemins de fer1918 (Chronologie de Dada et du surréalisme)1918 au
théâtreQuébec, Printemps 19181918 en architectureRévolution
allemande1918 en France1918 en science1918 en aéronautiqueIl tritticoSuor
AngelicaTraité de Brest-LitovskAmerican Expeditionary Force1918 en
musiqueTraité de Bucarest (1918)Guerre polono-ukrainienne1918 au Québec$

It seems that the ending lines are stripped for terminal output :)

----------------------------------------------------------------------

Comment By: Russell Blau (russblau)
Date: 2009-02-23 21:32

Message:
This should be fixed after r6431; please advise if the problem is resolved
on your machine.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2618858&group_id=93107



More information about the Pywikipedia-l mailing list