Skip to content

Commit

Permalink
Changed log level for SOAP. Activated auth cache
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed May 30, 2018
1 parent bad3f69 commit 7470b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/aastra_cwi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class AastraCWI
pretty_print_xml: true,
open_timeout: 10,
read_timeout: 10,
log_level: :debug,
log_level: :info,
logger: Logger.new(File.join(Rails.root, 'log', 'aastra_cwi.log')), # Rails.logger
log: true
}
Expand Down Expand Up @@ -116,7 +116,7 @@ def self.client(wsdl)

# Fetch and cache the auth token required to
def self.auth_token
# Rails.cache.fetch('aastra_auth_token', expires_in: 1.day) do
Rails.cache.fetch('aastra_auth_token', expires_in: 1.day) do
auth_client = Savon.client({
endpoint: APP_CONFIG['aastra_cwi']["auth_service"],
namespace: 'urn:ws-netwise-se:AnA:AnAService:v1',
Expand All @@ -133,6 +133,6 @@ def self.auth_token
}
)
auth.to_array(:get_sso_token_response).first[:get_sso_token_result]
#end
end
end
end

0 comments on commit 7470b62

Please sign in to comment.