From 7470b6287f13eb625e9856a7fd42ebd426f5eab2 Mon Sep 17 00:00:00 2001 From: martent Date: Wed, 30 May 2018 10:13:21 +0200 Subject: [PATCH] Changed log level for SOAP. Activated auth cache --- app/services/aastra_cwi.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/aastra_cwi.rb b/app/services/aastra_cwi.rb index 63dd548..dba52c7 100644 --- a/app/services/aastra_cwi.rb +++ b/app/services/aastra_cwi.rb @@ -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 } @@ -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', @@ -133,6 +133,6 @@ def self.auth_token } ) auth.to_array(:get_sso_token_response).first[:get_sso_token_result] - #end + end end end