diff --git a/app/services/katello/pulp3/task.rb b/app/services/katello/pulp3/task.rb index 8c17c4f09c5..3fa72b455cc 100644 --- a/app/services/katello/pulp3/task.rb +++ b/app/services/katello/pulp3/task.rb @@ -57,7 +57,7 @@ def self.version_href(tasks) tasks = [tasks] unless tasks.is_a?(Array) version_hrefs = tasks.map { |task| task[:created_resources] }.flatten version_hrefs = version_hrefs.select { |href| ::Katello::Pulp3::Repository.version_href?(href) } - Rails.logger.error("Got multiple version_hrefs for pulp task: #{tasks}") if version_hrefs.length > 2 + Rails.logger.debug("Got multiple version_hrefs for pulp task: #{tasks}") if version_hrefs.length > 2 version_hrefs.last end @@ -65,7 +65,7 @@ def self.publication_href(tasks) tasks = [tasks] unless tasks.is_a?(Array) publication_hrefs = tasks.map { |task| task[:created_resources] }.flatten publication_hrefs = publication_hrefs.select { |href| ::Katello::Pulp3::Repository.publication_href?(href) } - Rails.logger.error("Got multiple publication hrefs for pulp task: #{tasks}") if publication_hrefs.length > 2 + Rails.logger.debug("Got multiple publication hrefs for pulp task: #{tasks}") if publication_hrefs.length > 2 publication_hrefs.last #return the last href to workaround https://pulp.plan.io/issues/9098 end