diff --git a/Koha/Middleware/CSRF.pm b/Koha/Middleware/CSRF.pm index 8850d0ef80..5d4216e5f0 100644 --- a/Koha/Middleware/CSRF.pm +++ b/Koha/Middleware/CSRF.pm @@ -78,7 +78,8 @@ sub call { } } - if ( $error ) { + if ($error) { + #NOTE: Other Middleware will take care of logging to correct place, as Koha::Logger doesn't know where to go here warn $error; my $res = Plack::Response->new( 403, [ 'Content-Type' => 'text/plain' ], ["Wrong CSRF token"] );