From 0577b25e73119eb6e73255f0d0e597f311dca409 Mon Sep 17 00:00:00 2001 From: sabrine33 Date: Fri, 15 Nov 2024 09:49:12 +0000 Subject: [PATCH] replace put by logger --- app/models/location_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?