Bug 39911: Add POD

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 702d1d2792)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit 90aca69657)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Kyle M Hall 2025-06-12 08:43:03 -04:00 committed by Fridolin Somers
parent 46b433ee20
commit 5f9bf7974e
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@ sub BINMODE {
binmode( STDOUT, $mode );
};
=head2 DIE signal handler
A global die handler to capture fatal errors and ensures they are logged.
When DIE is emitted, the message will be logged using Koha::Logger if available,
and also printed to stderr
=cut
$SIG{__DIE__} = sub {
my $msg = shift;
my $logger = Koha::Logger->get( { interface => 'sip', category => 'STDERR' } );