From 28fd57d78a69a9bb7963597ddc8ec7a70883c7e1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 11:02:39 +0100 Subject: [PATCH] Bug 33020: Add missing Koha::Logger->history Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Tomas Cohen Arazi --- Koha/Logger.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Koha/Logger.pm b/Koha/Logger.pm index 4d2630ff6a..66c78a6735 100644 --- a/Koha/Logger.pm +++ b/Koha/Logger.pm @@ -204,6 +204,14 @@ sub context { return $self; } +sub history { + my ( $self, @history) = @_; + if ( @history ) { + $self->{history} = \@history; + } + return $self->{history} || []; +} + =head1 AUTHOR Kyle M Hall, Ekyle@bywatersolutions.comE -- 2.39.5