logging problems

Simon Dahlbacka simon.dahlbacka at gmail.com
Thu Apr 28 08:30:14 EDT 2005


Hi,

I'm currently using python 2.3.4 and I'm having problem with the logging module.

Occasionally when logging something with exc_info=True it just hangs, nothing is
logged, and software cannot continue executing.

By drilling down into logging package and adding rather many print statements
into  logging/__init__.py it seems like the "import traceback" in
formatException(self, ei) fails.

I.e.

print sys.modules["traceback"]
import traceback
print "Hello World"
sys.stdout.flush()

just renders: <module 'traceback' from 'C:\Python23\lib\traceback.pyc'> in the
console, and no "Hello World"

I'm running out of ideas what to try next, so suggestions/ideas appreciated!

/Simon




More information about the Python-list mailing list