[Zope] zeoctl logreopen doesn't work

2006-09-13 Thread Gerhard Schmidt
Hi, 

since i'm running my zeo.log at debug level in grows quite large. I've 
tried to rotate the log daily by renaming the zeo.log and call 
zeoctl logreopen. 

./bin/zeoctl logreopen
kill(6319, 31)
signal 31 sent to process 6319

But no new zeo.log is created and all log entries still go to the old file.

How can I get zeo to create a new logfile without restarting the zeo server
completely. 

Bye
Estartu


Gerhard Schmidt| Nick : estartu  IRC : Estartu  |
Fischbachweg 3 ||  PGP Public Key
86856 Hiltenfingen | EMail: [EMAIL PROTECTED]  |  on request 
Germany||  

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zeoctl logreopen doesn't work

2006-09-13 Thread Andreas Jung



--On 13. September 2006 10:00:12 +0200 Gerhard Schmidt [EMAIL PROTECTED] 
wrote:



Hi,

since i'm running my zeo.log at debug level in grows quite large. I've
tried to rotate the log daily by renaming the zeo.log and call
zeoctl logreopen.

./bin/zeoctl logreopen
kill(6319, 31)
signal 31 sent to process 6319

But no new zeo.log is created and all log entries still go to the old
file.

How can I get zeo to create a new logfile without restarting the zeo


#
Likely a bug. File a bugreport!

-aj

pgp9ck7iPeMeR.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] zeoctl logreopen doesn't work

2006-09-13 Thread Andrew Langmead

On Sep 13, 2006, at 4:00 AM, Gerhard Schmidt wrote:
But no new zeo.log is created and all log entries still go to the  
old file.





It looks like that wasn't implemented and just sort of stubbed out.
The method that gets called with logrotate looks like this:

def handle_sigusr2(self):
# TODO: this used to reinitialize zLOG. How do I achieve
# the same effect with Python's logging package?
# Should we restart as with SIGHUP?
log(received SIGUSR2, but it was not handled!,  
level=logging.WARNING)



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )