diff --git a/Koha/REST/Plugin/Exceptions.pm b/Koha/REST/Plugin/Exceptions.pm index 4539b847aa..9e5c5e5727 100644 --- a/Koha/REST/Plugin/Exceptions.pm +++ b/Koha/REST/Plugin/Exceptions.pm @@ -64,7 +64,10 @@ sub register { $type = "(" . ref($exception) . ")"; } - my $message = "$method $path: unhandled exception $type\<\<$exception\>\>"; + my $exception_string = "$exception"; + chomp($exception_string); + + my $message = "$method $path: unhandled exception $type\<\<$exception_string\>\>"; $c->app->log->error("$message");