From 65490029a25e3c4606b014bb710a3696e5180f89 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 29 May 2025 15:17:46 +0100 Subject: [PATCH] Bug 35761: (follow-up) Add missing import There is a missing import for the encode_json method, as well as an unnecessary call to the Koha::Logger class which throws an error --- Koha/File/Transport/SFTP.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Koha/File/Transport/SFTP.pm b/Koha/File/Transport/SFTP.pm index 73755f22c38..cd3e108097a 100644 --- a/Koha/File/Transport/SFTP.pm +++ b/Koha/File/Transport/SFTP.pm @@ -23,6 +23,7 @@ use File::Spec; use IO::File; use Net::SFTP::Foreign; use Try::Tiny; +use JSON qw ( encode_json ); use base qw(Koha::File::Transport); @@ -90,8 +91,6 @@ sub upload_file { my ( $self, $local_file, $remote_file ) = @_; my $operation = "upload"; - my $logger = Koha::Logger->get_logger(); - $self->{connection}->put( $local_file, $remote_file ) or return $self->_abort_operation($operation); $self->add_message( -- 2.48.1