[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
Tue Aug 14 22:12:32 CEST 2018


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

--- Comment #26 from Barton Chittenden <barton at bywatersolutions.com> ---
It seems that the last patch in this set removed the signal handlers added by
the previous patch, I'm not getting any fatals:

diff --git a/debian/templates/plack.psgi b/debian/templates/plack.psgi
index 2c65dc7..778befd 100644
--- a/debian/templates/plack.psgi
+++ b/debian/templates/plack.psgi
@@ -36,14 +36,8 @@ use Koha::Caches;
 use Koha::Cache::Memory::Lite;
 use Koha::Database;
 use Koha::DateUtils;
-
-#BZ 16357, add timestamps to warnings
 use Koha::Logger;

-my $logger = Koha::Logger->get({ interface => 'plack-error' });
-$SIG{__WARN__} = sub { $logger->warn(shift);  };
-$SIG{__DIE__}  = sub { $logger->fatal(shift); };
^^^^^^^^^^^^^^^

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


More information about the Koha-bugs mailing list