diff --git a/C4/SIP/Trapper.pm b/C4/SIP/Trapper.pm
index ef99b5de17..658c779188 100644
--- a/C4/SIP/Trapper.pm
+++ b/C4/SIP/Trapper.pm
@@ -27,14 +27,21 @@ sub TIEHANDLE {
sub PRINT {
my $self = shift;
- $Log::Log4perl::caller_depth++;
+ $Log::Log4perl::caller_depth += 3;
my $logger =
Koha::Logger->get( { interface => 'sip', category => 'STDERR' } );
warn @_;
$logger->warn(@_);
- $Log::Log4perl::caller_depth--;
+ $Log::Log4perl::caller_depth -= 3;
}
+=head2 OPEN
+
+ We need OPEN in case Net::Server tries to redirect STDERR. This will
+ be tried when param log_file or setsid is passed.
+
+=cut
+
sub OPEN {
return 1;
}
diff --git a/debian/templates/SIPconfig.xml b/debian/templates/SIPconfig.xml
index dc1ca38a4d..53b0638802 100644
--- a/debian/templates/SIPconfig.xml
+++ b/debian/templates/SIPconfig.xml
@@ -10,9 +10,6 @@
diff --git a/etc/SIPconfig.xml b/etc/SIPconfig.xml
index 356175af12..33f1859c9f 100644
--- a/etc/SIPconfig.xml
+++ b/etc/SIPconfig.xml
@@ -15,9 +15,6 @@
min_servers='1'
min_spare_servers='0'
max_servers='1'
- log_file='Sys::Syslog'
- syslog_ident='koha_sip'
- syslog_facility='local6'
setsid="1"
user='koha'
group='koha'