Public bug reported:

Binary package hint: python2.4

The logging module is part of the python2.4 package.

This issue is visible in edgy but not in dapper. The version of python
on edgy is 2.4.4c1 whereas with in dapper, it is 2.4.3.

If the logging module is used as follows

$ cat foo.py 
import logging

logger = logging.getLogger("pydagogue")
handler = logging.StreamHandler()
handler.setFormatter(logging.Formatter("[%(levelname)s]%(pathname)s:%(lineno)d 
%(message)s"))
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

logger.debug("Hello there!")

$ python foo.py 
[DEBUG]logging/__init__.py:1072 Hello there!

The "logging/__init__.py" and "1072" are the name and line number from
the logging module itself. It should have printed

[DEBUG]foo.py:10 Hello there!

This problem exists in edgy but not in dapper. It is also fixed in the
latest released version of python (2.5).

** Affects: python2.4 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Incorrect output from logging module
https://launchpad.net/bugs/70634

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to