From 543a7f5081677347b46ce17e9cc7d24faf9d5dab Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 28 Aug 2015 07:31:10 -0400 Subject: [PATCH] Bug 14751 - Allow C4::Context->interface to be set to 'sip' or 'commandline' Koha::Logger allows us to split up logging to separate files based on the interface. However, right now the interface is limited to just 'opac' or 'intranet'. We should extend this to allow the interface to also be set to 'sip' for SIP server logging, and to 'commandline' for cronjobs and all other command line scripts. Signed-off-by: Chris Does what it says on the tin Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 2546509768..226ba6a2cc 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -1118,7 +1118,7 @@ sub interface { if (defined $interface) { $interface = lc $interface; - if ($interface eq 'opac' || $interface eq 'intranet') { + if ($interface eq 'opac' || $interface eq 'intranet' || $interface eq 'sip' || $interface eq 'commandline') { $context->{interface} = $interface; } else { warn "invalid interface : '$interface'"; -- 2.39.5