Remove debug logger
This commit is contained in:
parent
2505419b08
commit
a17ac5a9db
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue