From eaf86859ab3b7eb24bad38b4a61d3caf72915370 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Wed, 16 Nov 2022 12:59:29 +0100 Subject: [PATCH] Temporary disable logging --- app/controllers/api/api_controller.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb index 3083874..dada63d 100644 --- a/app/controllers/api/api_controller.rb +++ b/app/controllers/api/api_controller.rb @@ -273,11 +273,11 @@ def taxonomy private # log all api calls to stathat - def log - return unless Rails.application.config.unipept_API_logging - - StatHat::API.ez_post_count("API - #{action_name}", Rails.application.config.unipept_stathat_key, 1) - end + # def log + # return unless Rails.application.config.unipept_API_logging + # + # StatHat::API.ez_post_count("API - #{action_name}", Rails.application.config.unipept_stathat_key, 1) + # end # enable cross origin requests def set_headers