List Info

Thread: Event log exception reporting with services




Event log exception reporting with services
user name
2007-04-04 10:46:56
The servicemanager implementation writes an entry into the
windows
error log when an exception causes a service to drop out of
DoRun.
This works great with Python2.4, but with Python 2.5 I don't
get the
error messages. I'm using the prebuilt installers from the
SF site,
version 210 for both. This affects both py2exed executables
and when
running via PythonService.exe.

I'm pretty lost on what the problem might be, does anyone
have any suggestions?
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: Event log exception reporting with services
country flaguser name
Australia
2007-04-05 00:10:44
I can't reproduce this.  If I change
win32DemosservicepipeTestService.py
to raise an error in the SvcDoRun() function, after starting
the service I
see the exception in the event log.  Were both 2.4 and 2.5
installed with
admin rights?

Mark

> -----Original Message-----
> From: python-win32-bouncespython.org
> [mailto:python-win32-bouncespython.org]On Behalf Of
Chris Mellon
> Sent: Thursday, 5 April 2007 1:47 AM
> To: python-win32python.org
> Subject: [python-win32] Event log exception reporting
with services
>
>
> The servicemanager implementation writes an entry into
the windows
> error log when an exception causes a service to drop
out of DoRun.
> This works great with Python2.4, but with Python 2.5 I
don't get the
> error messages. I'm using the prebuilt installers from
the SF site,
> version 210 for both. This affects both py2exed
executables and when
> running via PythonService.exe.
>
> I'm pretty lost on what the problem might be, does
anyone
> have any suggestions?
> _______________________________________________
> Python-win32 mailing list
> Python-win32python.org
> 
http://mail.python.org/mailman/listinfo/python-win32
>

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: Event log exception reporting with services
user name
2007-04-05 12:20:15
Yes, there both installed from the stock python.org
installers and
"for all users" by an admin user.

Update - it's working for my own services now, too. I
rebooted last
night to install patches, perhaps there was a bad message
dll or
something was stuck in memory.

On 4/5/07, Mark Hammond <mhammondskippinet.com.au>
wrote:
> I can't reproduce this.  If I change
win32DemosservicepipeTestService.py
> to raise an error in the SvcDoRun() function, after
starting the service I
> see the exception in the event log.  Were both 2.4 and
2.5 installed with
> admin rights?
>
> Mark
>
> > -----Original Message-----
> > From: python-win32-bouncespython.org
> > [mailto:python-win32-bouncespython.org]On Behalf Of
Chris Mellon
> > Sent: Thursday, 5 April 2007 1:47 AM
> > To: python-win32python.org
> > Subject: [python-win32] Event log exception
reporting with services
> >
> >
> > The servicemanager implementation writes an entry
into the windows
> > error log when an exception causes a service to
drop out of DoRun.
> > This works great with Python2.4, but with Python
2.5 I don't get the
> > error messages. I'm using the prebuilt installers
from the SF site,
> > version 210 for both. This affects both py2exed
executables and when
> > running via PythonService.exe.
> >
> > I'm pretty lost on what the problem might be, does
anyone
> > have any suggestions?
> > _______________________________________________
> > Python-win32 mailing list
> > Python-win32python.org
> > 
http://mail.python.org/mailman/listinfo/python-win32
> >
>
>
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )