Bug 23896: logaction should pass the correct interface to Koha::Logger
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 25 Oct 2019 08:49:15 +0000 (08:49 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 30 Jan 2020 10:53:56 +0000 (10:53 +0000)
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>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

C4/Log.pm

index 34e2b60..7d193e3 100644 (file)
--- 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"
         }
     );