added logging to cycle_inventory method