Skip to content

Commit

Permalink
replace put by logger
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrine33 committed Nov 15, 2024
1 parent 5900361 commit 0577b25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/location_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 0577b25

Please sign in to comment.