mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 23:16:15 +08:00
Add logging for ApiClient and fix hound formatting
This commit is contained in:
parent
5685709f48
commit
a15b1f6dfa
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module ProtocolImporters
|
||||
module ProtocolsIO
|
||||
module V3
|
||||
|
@ -6,6 +8,7 @@ module ProtocolImporters
|
|||
|
||||
base_uri 'https://www.protocols.io/api/v3/'
|
||||
default_timeout 10
|
||||
logger Rails.logger, :debug
|
||||
|
||||
def initialize(token = nil)
|
||||
# Currently we support public tokens only (no token needed for public data)
|
||||
|
@ -61,7 +64,6 @@ module ProtocolImporters
|
|||
self.class.get("https://www.protocols.io/view/#{uri}.html", headers: {})
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue