Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #38150 - Switch log level of 2 harmless messages to debug level #11287

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/services/katello/pulp3/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ 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

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

Expand Down
Loading