From 471651284a5f1410076b5b062b9d495fa68579ca Mon Sep 17 00:00:00 2001 From: Karsten Dambekalns Date: Thu, 3 Feb 2022 20:57:30 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20error=20in=20error=20logging=20?= =?UTF-8?q?=F0=9F=91=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/S3Target.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/S3Target.php b/Classes/S3Target.php index 47831b2..23c0177 100644 --- a/Classes/S3Target.php +++ b/Classes/S3Target.php @@ -413,7 +413,7 @@ private function copyObject(\Closure $sourceBuilder, \Closure $targetBuilder, Re $this->systemLogger->debug(sprintf('Successfully published resource as object "%s" (SHA1: %s) by copying from "%s" to bucket "%s"', $target, $resource->getSha1() ?: 'unknown', $source, $this->bucketName)); } catch (S3Exception $e) { $this->systemLogger->critical($e, LogEnvironment::fromMethodName(__METHOD__)); - $message = sprintf('Could not publish resource with SHA1 hash %s of collection %s (source object: %s) through "CopyObject" because the S3 client reported an error: %s', $resource->getSha1(), $collection->getName(), $source, $e->getMessage()); + $message = sprintf('Could not publish resource with SHA1 hash %s (source object: %s) through "CopyObject" because the S3 client reported an error: %s', $resource->getSha1(), $source, $e->getMessage()); $this->messageCollector->append($message); } }