From 0147b338fc071d670e9b34b548132a570949f720 Mon Sep 17 00:00:00 2001
From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Date: Fri, 25 Oct 2019 08:49:15 +0000
Subject: [PATCH] Bug 23896: logaction should pass the correct interface to
 Koha::Logger

Trivial fix.

Test plan:
Run t/db../Log.t to ensure that we did not break stuff.
If you set opac to debug in log4perl config, inspect opac-error.log to see
if you have extra loglines from running the test script.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
 C4/Log.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/C4/Log.pm b/C4/Log.pm
index 34e2b609c2..7d193e3773 100644
--- a/C4/Log.pm
+++ b/C4/Log.pm
@@ -84,7 +84,7 @@ sub logaction {
 
     my $logger = Koha::Logger->get(
         {
-            interface => 'intranet',
+            interface => $interface,
             category  => "ActionLogs.$modulename.$actionname"
         }
     );
-- 
2.20.1