This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Henrique Andrade
Recipients Henrique Andrade
Date 2015-10-22.13:59:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445522395.9.0.458727890682.issue25459@psf.upfronthosting.co.za>
In-reply-to
Content
There is a particular bug we hit when using the Python logging module very consistently under the particular settings in which we run one of our applications.

We are using Python 2.7.10 on RHEL7/RHEL6/Ubuntu14.04.

Anyways, here is the symptom:

Traceback (most recent call last):
  File "/opt/continuum/anaconda/lib/python2.7/logging/__init__.py", line 880, in emit
    stream.write(fs % msg)
IOError: [Errno 11] Resource temporarily unavailable

Here is the suggested fix:

26c26
< import sys, os, time, cStringIO, traceback, warnings, weakref, collections, errno
---
> import sys, os, time, cStringIO, traceback, warnings, weakref, collections
880,886c880
<                         while True:
< 			    try:
<                                 stream.write(fs % msg)
< 				break
<                             except IOError as e:
<                                 if e.errno != errno.EAGAIN:
< 				   raise
---
>                         stream.write(fs % msg)
History
Date User Action Args
2015-10-22 13:59:55Henrique Andradesetrecipients: + Henrique Andrade
2015-10-22 13:59:55Henrique Andradesetmessageid: <1445522395.9.0.458727890682.issue25459@psf.upfronthosting.co.za>
2015-10-22 13:59:55Henrique Andradelinkissue25459 messages
2015-10-22 13:59:55Henrique Andradecreate