469,600 Members | 2,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

logging problems

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

Jul 19 '05 #1
2 1148
Simon Dahlbacka wrote:
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"
Works fine on Python 2.4 for Windows.
I'm running out of ideas what to try next, so suggestions/ideas appreciated!


That's a very strange failure condition. Perhaps something is wrong with your
Python installation. Have you edited any other system modules besides logging?

I would try a clean installation of the newest version and see if that fixes
it.
--
Michael Hoffman
Jul 19 '05 #2
I probably did not mention it, but I've used traceback module in other
places, and it works fine.

We've been planning to upgrade to 2.4 but unfortunately I cannot do
that right now, and no, I have not messed with any other system modules.

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by max | last post: by
reply views Thread by Robert.Schmitt | last post: by
3 posts views Thread by Frantisek Fuka | last post: by
23 posts views Thread by Rotem | last post: by
6 posts views Thread by Kevin Jackson | last post: by
1 post views Thread by nicholas.farrell | last post: by
3 posts views Thread by nicholas.petrella | last post: by
9 posts views Thread by Rasika WIJAYARATNE | last post: by
4 posts views Thread by Alia Khouri | last post: by
6 posts views Thread by Thomas Heller | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.