Skip to content

Commit

Permalink
Fix save_inventory helper log messages
Browse files Browse the repository at this point in the history
Fix save_inventory helper log messages
  • Loading branch information
Ladas committed Jan 9, 2017
1 parent 6212593 commit b2ad914
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/manager_refresh/save_collection/helper.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
module ManagerRefresh::SaveCollection
module Helper
def save_inventory_object_inventory(ems, inventory_collection)
_log.info("Synchronizing #{ems.name} collection #{inventory_collection.size} of size #{inventory_collection} to database")
_log.info("Synchronizing #{ems.name} collection #{inventory_collection} of size #{inventory_collection.size} to"\
" the database")

if inventory_collection.custom_save_block.present?
_log.info("Synchronizing #{ems.name} collection #{inventory_collection.size} using a custom save block")
_log.info("Synchronizing #{ems.name} collection #{inventory_collection} using a custom save block")
inventory_collection.custom_save_block.call(ems, inventory_collection)
else
save_inventory(inventory_collection)
Expand Down

0 comments on commit b2ad914

Please sign in to comment.