Permalink
Browse files

Merge pull request #132 from alphagov/bugfix-sidekiq-logging

Use Sidekiq logging instead of rails logging in worker
  • Loading branch information...
2 parents 8304f2e + c6d3ebf commit 02357c8816bb53963373b01e0a50f935e89fefbc @vinayvinay vinayvinay committed Feb 6, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/workers/service_feedback_pp_uploader_worker.rb
@@ -7,7 +7,7 @@ class ServiceFeedbackPPUploaderWorker
include Support::Requests::Anonymous
def perform(year, month, day, transaction_slug)
- Rails.logger.info("Uploading statistics for #{year}-#{month}-#{day}, slug #{transaction_slug}")
+ logger.info("Uploading statistics for #{year}-#{month}-#{day}, slug #{transaction_slug}")
api = GdsApi::PerformancePlatform::DataIn.new(
PP_DATA_IN_API[:url],
bearer_token: PP_DATA_IN_API[:bearer_token]
@@ -22,6 +22,6 @@ def self.run
slugs.each do |transaction_slug|
perform_async(yesterday.year, yesterday.month, yesterday.day, transaction_slug)
end
- Rails.logger.info("Queued upload for #{slugs.size} slugs")
+ logger.info("Queued upload for #{slugs.size} slugs")
end
end

0 comments on commit 02357c8

Please sign in to comment.