Skip to content

Commit

Permalink
Fix error in error logging 👻
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Feb 3, 2022
1 parent b88cdbe commit 4716512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/S3Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 4716512

Please sign in to comment.