Skip to content

Commit

Permalink
Merge pull request #17868 from lpichler/fix_logging_in_chargeback
Browse files Browse the repository at this point in the history
Fix counts in log message in ConsumptionHistory
(cherry picked from commit 85cdfe6)

https://bugzilla.redhat.com/show_bug.cgi?id=1623582
  • Loading branch information
gtanzillo authored and simaishi committed Sep 11, 2018
1 parent 4736700 commit 965c73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/chargeback/consumption_history.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def self.for_report(cb_class, options)
records = uniq_timestamp_record_map(records, options.group_by_tenant?)

next if records.empty?
_log.info("Found #{records.length} records for time range #{[query_start_time, query_end_time].inspect}")
_log.info("Found #{records.flatten.flatten.count - records.keys.count} records for time range #{[query_start_time, query_end_time].inspect}")

# we are building hash with grouped calculated values
# values are grouped by resource_id and timestamp (query_start_time...query_end_time)
Expand Down

0 comments on commit 965c73f

Please sign in to comment.