[issue35046] logging.StreamHandler performs two syscalls when one would do

2019-02-06 Thread Ulrich Petri
Ulrich Petri added the comment: This change breaks (probably unsupported) uses of the logging module (esp. in combination with structlog) where non-string objects are passed through the .format() and .emit() calls. Previously it was possible to set the terminator attribute to None (and then

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-23 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset d730719b094cb006711b1cd546927b863c173b31 by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042) (GH-10050)

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset b7d62050e7d5fc208ae7673613da4f1f2bc565c4 by Vinay Sajip (Josh Snyder) in branch 'master': bpo-35046: do only one system call per line (logging.StreamHandler) (GH-10042)

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-23 Thread miss-islington
Change by miss-islington : -- pull_requests: +9388 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Vinay Sajip
Change by Vinay Sajip : -- pull_requests: +9382 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder
Change by Josh Snyder : -- keywords: +patch pull_requests: +9381 stage: -> patch review ___ Python tracker ___ ___

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip, xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35046] logging.StreamHandler performs two syscalls when one would do

2018-10-22 Thread Josh Snyder
New submission from Josh Snyder : logging.StreamHandler contains the following code: stream.write(msg) stream.write(self.terminator) stream.flush() When sys.stderr (or whatever other stream) is unbuffered, this results in two system calls and allows log records from different