diff --git a/app/models/location_creator.rb b/app/models/location_creator.rb index 99e49245..ef4e97b9 100644 --- a/app/models/location_creator.rb +++ b/app/models/location_creator.rb @@ -39,7 +39,7 @@ def create_locations(type, location, parents) end def create_location(location, location_type, parent, container, barcode) - puts "Creating location: #{location} #{barcode}" + Rails.logger.debug { "Creating location: #{location} #{barcode}" } find_or_create_attributes = { name: location, container: container } find_or_create_attributes[:barcode] = barcode if barcode.present?