Skip to content

Commit

Permalink
Temporary disable logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Nov 16, 2022
1 parent 3eb6e78 commit eaf8685
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/api/api_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eaf8685

Please sign in to comment.