Python Services and excepthook (not working)

L

Larry Bates

In an attempt to catch all exceptions that might
happen in my program, I have set an excepthook
so that I can catch the exception, get the
traceback and log it to a file. This works like
a charm for "normal" Python programs. I have
just begun to write Python services and this
methodology doesn't seem to work any more. It
appears that some other function is taking over
my excepthook and writes the traceback to the
Event Log (not a bad thing, just not what I want).
I would like to get back control so I can log
the exception to my log file (and email a message
to the administrator).

Anybody got an idea how I might accomplish this?

Thanks in advance,
Larry Bates
Syscon, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,123
Latest member
Layne6498
Top