twisted.python.log.PythonLoggingObserver is broken on Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
twisted (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned |
Bug Description
On up-to-date focal with python3-twisted 18.9.0-
$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> from twisted.python import log
>>> logging.
>>> observer = log.PythonLoggi
>>> observer.start()
>>> log.msg('test')
Temporarily disabling observer LegacyLogObserv
<stdin>
/usr/
/usr/
/usr/
--- <exception caught here> ---
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
/usr/
]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return function(self, *args, **kwargs)
File "/usr/lib/
_
File "/usr/lib/
observer(
--- <exception caught here> ---
File "/usr/lib/
observer(
File "/usr/lib/
self.
File "/usr/lib/
_
File "/usr/lib/
observer(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
fn, lno, func, sinfo = self.findCaller
builtins.
This is https:/
This caused test failures in launchpad-buildd on focal (though I may look for a workaround).
Changed in twisted (Ubuntu): | |
status: | New → Fix Released |