Fix output of cache integrity checker errors

This commit is contained in:
Rohan Mitchell
2016-02-26 12:05:49 +11:00
parent 45a7b13e9a
commit d89e9620ac

View File

@@ -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