[Kolab-devel] [issue3661] Include pid in kolabfilter log file

Richard Bos kolab-issues at intevation.de
Sun May 31 20:22:55 CEST 2009


New submission from Richard Bos <ml at radoeka.nl>:

Include the pid in the filterlog file, without the pid the log file is
basically useless as multiple filters run in parallel.  Without pid the
logs of the different filters can not be separated.  I need a good log
to investigate issue3629 https://www.intevation.de/roundup/kolab/issue3629

As such I initially changed the filter log name:
$conf['log']['name'] = '/var/log/kolab/filter.'.getmypid();
This helped me tremendiously while debugging issue 3626.  As I assume that
kolab wants only 1 filter log file, I thing that the following change is
good enough:
$conf['log']['ident'] = 'Kolab Filter (pid='.getmypid().')';

If this change is okay, I can commit it to cvs.

An example of the change included below:
May 31 19:45:33 Kolab Filter (pid=5429) [debug] [horde] sleep 007 [on line 143
of "/usr/share/php5/PEAR/Horde/Kolab/Filter/Base.php"]                                                                                                                         
May 31 19:45:33 Kolab Filter (pid=5430) [debug] [horde] sleep 007 [on line 143
of "/usr/share/php5/PEAR/Horde/Kolab/Filter/Base.php"]                                                                                                                         
May 31 19:45:35 Kolab Filter (pid=5423) [debug] [horde] sleep 007 [on line 143
of "/usr/share/php5/PEAR/Horde/Kolab/Filter/Base

(the sleeps were added by me).  As you can see, the 3 lines are logged behing
each other, while they are from different processes.

----------
assignedto: wrobel
files: resmgr.conf.pid.patch
messages: 20451
nosy: rbos, thomas, wrobel
priority: bug
status: unread
title: Include pid in kolabfilter log file
topic: server
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue3661>
___________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: resmgr.conf.pid.patch
Type: application/octet-stream
Size: 853 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20090531/c2109c6c/attachment.obj>


More information about the devel mailing list