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>
This commit is contained in:
Kyle M Hall 2025-06-12 08:43:03 -04:00 committed by Paul Derscheid
parent 970afe8950
commit 90aca69657
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,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' } );