From d89e9620ac153db28e204d231b8aa9903b0eb03d Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 26 Feb 2016 12:05:49 +1100 Subject: [PATCH] Fix output of cache integrity checker errors --- app/jobs/products_cache_integrity_checker_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/products_cache_integrity_checker_job.rb b/app/jobs/products_cache_integrity_checker_job.rb index 7bcf86baeb..89f8a5d7f4 100644 --- a/app/jobs/products_cache_integrity_checker_job.rb +++ b/app/jobs/products_cache_integrity_checker_job.rb @@ -3,7 +3,7 @@ require 'open_food_network/products_renderer' ProductsCacheIntegrityCheckerJob = Struct.new(:distributor_id, :order_cycle_id) do def perform if diff.any? - Bugsnag.notify RuntimeError.new("Products JSON differs from cached version"), diff: diff.to_s(:color) + Bugsnag.notify RuntimeError.new("Products JSON differs from cached version for distributor: #{@distributor_id}, order cycle: #{@order_cycle_id}"), diff: diff.to_s(:text) end end