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 Riccardo Magliocchetti
Recipients Riccardo Magliocchetti
Date 2019-02-17.19:20:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550431224.14.0.504793638163.issue36015@roundup.psfhosted.org>
In-reply-to
Content
When debugging uwsgi logging issues with python3.7 i got this on python 3.7.2:
Traceback (most recent call last):
  File "/usr/lib/python3.7/logging/__init__.py", line 269, in _after_at_fork_weak_calls
    _at_fork_weak_calls('release')
  File "/usr/lib/python3.7/logging/__init__.py", line 261, in _at_fork_weak_calls
    method_name, "method:", err, file=sys.stderr)
  File "/usr/lib/python3.7/logging/__init__.py", line 1066, in __repr__
    name = name + ' '
TypeError: unsupported operand type(s) for +: 'int' and 'str'

AFAICS uwsgi creates sys.stderr as an unbuffered file with PyFile_FromFd() and sets it to sys dict.
History
Date User Action Args
2019-02-17 19:20:24Riccardo Magliocchettisetrecipients: + Riccardo Magliocchetti
2019-02-17 19:20:24Riccardo Magliocchettisetmessageid: <1550431224.14.0.504793638163.issue36015@roundup.psfhosted.org>
2019-02-17 19:20:24Riccardo Magliocchettilinkissue36015 messages
2019-02-17 19:20:24Riccardo Magliocchetticreate