Log Rotation Question

Gunnar Wrobel wrobel at pardus.de
Sat Nov 29 22:35:00 CET 2008


Quoting Albrecht Dreß <albrecht.dress at lios-tech.com>:

> Quoting Albrecht Dreß <albrecht.dress at lios-tech.com>:
>> looking through the log files of my Kolab 2.2.0 installation, it seems
>> as if the files in the folders
>>
>> /kolab/var/kolab-filter/log
>> /kolab/var/kolab-freebusy/log
>>
>> are not being rotated.
>
> Having a closer look at it, this seems to be a bug
> <https://www.intevation.de/roundup/kolab/issue3264>.
>
> Furthermore, the file /kolab/var/kolab-filter/log/fatal.log contains
> lots of messages like
>
> PHP Notice:  Undefined index:  xxx in
> /kolab/lib/php/Kolab/Filter/Resource.php on line yyy
>
> Now, is this just a notice which can be ignored (as the entry
> suggests), or is this a fata error (as the file name implies)?  The
> same applies also for /kolab/var/kolab-freebusy/log/php-error.log, btw.

The notices can in fact be ignored. Though I hope they are gone with  
Kolab Server 2.2.1.

The reason why this appears in a log called "fatal.log": For  
Kolab_Filter we have the special situation that we *never* *ever* want  
it to really fail and abort as this is handling mails. So once we hit  
programming errors, I want to see this in fatal.log. This specific log  
is catching all programming errors I made and this also includes the  
notices even if those are not fatal. It would be too much effort to  
make the distinction between a notice and a fatal error.

And in fact we shouldn't have PHP notices anywhere in the code. This  
is just a clean PHP coding practice. I know older Kolab server  
versions simply turned of these notices and now that I turned them on  
we see many such things from the Kolab webadmin but that needs to get  
fixed eventually.

Cheers,

Gunnar

>
> Thanks, Albrecht.
>
> _______________________________________________
> Kolab-users mailing list
> Kolab-users at kolab.org
> https://kolab.org/mailman/listinfo/kolab-users
>



-- 
______ http://kdab.com _______________ http://kolab-konsortium.com _

p at rdus Kolab work is funded in part by KDAB and the Kolab Konsortium

____ http://www.pardus.de _________________ http://gunnarwrobel.de _
E-mail : p at rdus.de                                 Dr. Gunnar Wrobel
Tel.   : +49 700 6245 0000                          Bundesstrasse 29
Fax    : +49 721 1513 52322                          D-20146 Hamburg
--------------------------------------------------------------------
    >> Mail at ease - Rent a kolab groupware server at p at rdus <<
--------------------------------------------------------------------


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.kolab.org/pipermail/users/attachments/20081129/c84e922b/attachment.sig>


More information about the users mailing list