From: Frédéric Demians Date: Fri, 27 Nov 2009 17:16:55 +0000 (+0100) Subject: Bug 3814: SIP2 Server logging doesn't work on OpenSolaris X-Git-Tag: v3.02.00-alpha~39^2~1 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=fca7926374e7f30a5c435678f76d26b619758020;p=koha-ffzg.git Bug 3814: SIP2 Server logging doesn't work on OpenSolaris This patch put in SIPconfig.xml SIP2 server logging parameters. This is way it's possible to modify where SIP2 logs are sent. And fix OpenSolaris bug. WARNING: After an upgrade, installation using a custom SIP2 server config file will need to copy default SIPconfig.xml added section: --- diff --git a/C4/SIP/SIPServer.pm b/C4/SIP/SIPServer.pm index 55b2380f73..c6de11e464 100644 --- a/C4/SIP/SIPServer.pm +++ b/C4/SIP/SIPServer.pm @@ -59,16 +59,8 @@ foreach my $svc (keys %{$config->{listeners}}) { # Jun 16 21:21:31 server08 steve_sip[19305]: ILS::Transaction::Checkout performing checkout... # [ TIMESTAMP ] [ HOST ] [ IDENT ] PID : Message... # -# The IDENT is determined by $ENV{KOHA_SIP_LOG_IDENT}, if present. -# Otherwise it is "_sip" appended to $USER, if present, or "acs-server" as a fallback. -# +# The IDENT is determined by config file 'server-params' arguments -my $syslog_ident = $ENV{KOHA_SIP_LOG_IDENT} || ($ENV{USER} ? $ENV{USER} . "_sip" : 'acs-server'); - -push @parms, - "log_file=Sys::Syslog", - "syslog_ident=$syslog_ident", - "syslog_facility=" . LOG_SIP; # # Server Management: set parameters for the Net::Server::PreFork diff --git a/C4/SIP/SIPconfig.xml b/C4/SIP/SIPconfig.xml index 0e5f05ed31..f229b9a51b 100644 --- a/C4/SIP/SIPconfig.xml +++ b/C4/SIP/SIPconfig.xml @@ -2,10 +2,18 @@ - - + +