Skip to content

Commit

Permalink
Add rate id to log
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Aug 23, 2018
1 parent 7d2a13e commit 15d8f4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/chargeback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def calculate_costs(consumption, rates)
self.class.try(:refresh_dynamic_metric_columns)

rates.each do |rate|
_log.debug("Calculation with rate: #{rate.description}(#{rate.rate_type})")
_log.debug("Calculation with rate: #{rate.id} #{rate.description}(#{rate.rate_type})")
rate.rate_details_relevant_to(relevant_fields, self.class.attribute_names).each do |r|
_log.debug("Metric: #{r.chargeable_field.metric} Group: #{r.chargeable_field.group} Source: #{r.chargeable_field.source}")
r.chargeback_tiers.each do |tier|
Expand Down

0 comments on commit 15d8f4f

Please sign in to comment.