From 8dd4a1ca4e3863ef77757703c0881a99d51205f3 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Wed, 26 Sep 2018 16:39:10 +0200 Subject: [PATCH] ProcedureController: remove useless logger call --- app/controllers/api/v1/procedures_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/api/v1/procedures_controller.rb b/app/controllers/api/v1/procedures_controller.rb index 8734cdca9..cf5ecf980 100644 --- a/app/controllers/api/v1/procedures_controller.rb +++ b/app/controllers/api/v1/procedures_controller.rb @@ -23,8 +23,7 @@ class API::V1::ProceduresController < APIController render json: {}, status: :unauthorized end - rescue ActiveRecord::RecordNotFound => e - Rails.logger.error(e.message) + rescue ActiveRecord::RecordNotFound render json: {}, status: :not_found end end