From a17ac5a9db4d912ff25e631622e2137692184fe7 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Mon, 26 Mar 2018 17:44:51 +0200 Subject: [PATCH] Remove debug logger --- app/controllers/users/dossiers_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/users/dossiers_controller.rb b/app/controllers/users/dossiers_controller.rb index 59a93f2f6..5938f3a80 100644 --- a/app/controllers/users/dossiers_controller.rb +++ b/app/controllers/users/dossiers_controller.rb @@ -106,15 +106,11 @@ class Users::DossiersController < UsersController update_current_user_siret!(siret) etablissement_attributes = SIRETService.fetch(siret, @facade.dossier) - Rails.logger.info("etablissement_attributes for siret: #{siret}, present?: #{etablissement_attributes.present?}") if etablissement_attributes.present? etablissement_attributes = ActionController::Parameters.new(etablissement_attributes).permit! etablissement = @facade.dossier.build_etablissement(etablissement_attributes) - if etablissement.save - Rails.logger.info("etablissement saved, siret: #{siret}, id: #{etablissement.id}") - else - Rails.logger.info("etablissement not saved, siret: #{siret}, errors: #{etablissement.errors.full_messages}") + if !etablissement.save return errors_valid_siret end else