[Koha-bugs] [Bug 16357] Plack error logs are not time stamped

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 26 01:48:13 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16357

--- Comment #90 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #89)
> To Test:
> 0) apt-get install libplack-middleware-logwarn-perl
> 1) Apply all patches
> 3) cp debian/templates/plack.psgi /etc/koha/plack.psgi
> 4) Temporarily add 'warn "TEST"' to opac-main.pl and mainpage.pl
> 5) restart_all
> 
> Warnings show in /var/log/koha/kohadev/plack-error.log
> 
> So... no warnings lost....

Note that this is without adding any conditional logic. The Plack middleware
seems to notice that there are no loggers available and thus it doesn't get
used. 

I see no issue pushing the patches, as the patches use the existing behaviour
(ie they're backwards compatible) if you don't update your log4perl. 

If you do update your log4perl and do a restart_all... hmm it's actually not
using the middleware...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list