zuora_connect 1.7.86 → 1.7.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e487ce13412a7c736aa6d23b72cb80033d25c6754085e54c97716b976ccdd399
|
4
|
+
data.tar.gz: 9b2f109067472ed73fa1cdd45787df3acdcbea5f6a2792ece645ee8f9145aae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfa1c427797e78389d1973dfd719f967748886cb9e3da3fda3915a9df1f21b5969d0caa05d423afe7cfc1a8cbb78263981bdbddc4a42ce2fe61ffaa4b0b70f24
|
7
|
+
data.tar.gz: c78b56de7f28fbbe9e6360079ec873513d024dd7481a9a81151cfc342939777b4a26e7c04e922812bb45f81129f70f5de93f81da7545c556e9ed136798fdcd84
|
@@ -16,6 +16,7 @@ module ZuoraConnect
|
|
16
16
|
BLANK_OBJECT_ID_LOOKUP = 'BlankValueSupplied'
|
17
17
|
HOLDING_PATTERN_SLEEP = 5.seconds
|
18
18
|
CONNECT_COMMUNICATION_SLEEP= 5.seconds
|
19
|
+
IGNORED_LOCALS = ['fr', 'ja', 'sp']
|
19
20
|
|
20
21
|
def init
|
21
22
|
self.connect_user = 'Nobody'
|
@@ -171,7 +172,7 @@ module ZuoraConnect
|
|
171
172
|
retry
|
172
173
|
rescue => ex
|
173
174
|
if recoverable_session
|
174
|
-
ZuoraConnect.logger.
|
175
|
+
ZuoraConnect.logger.warn("REBUILDING - Using backup expired cache")
|
175
176
|
self.build_task(task_data: session["#{self.id}::task_data"], session: session)
|
176
177
|
return self
|
177
178
|
else
|
@@ -181,7 +182,7 @@ module ZuoraConnect
|
|
181
182
|
begin
|
182
183
|
I18n.locale = self.locale
|
183
184
|
rescue I18n::InvalidLocale => ex
|
184
|
-
ZuoraConnect.logger.
|
185
|
+
ZuoraConnect.logger.error(ex) if !IGNORED_LOCALS.include?(ex.locale.to_s.downcase)
|
185
186
|
end
|
186
187
|
Time.zone = self.timezone
|
187
188
|
tenants = self.task_data.dig('tenant_ids') || []
|
@@ -142,7 +142,7 @@ module ZuoraConnect
|
|
142
142
|
begin
|
143
143
|
I18n.locale = session["#{@appinstance.id}::user::locale"] ? session["#{@appinstance.id}::user::locale"] : @appinstance.locale
|
144
144
|
rescue I18n::InvalidLocale => ex
|
145
|
-
ZuoraConnect.logger.error(
|
145
|
+
ZuoraConnect.logger.error(ex) if !ZuoraConnect::AppInstance::IGNORED_LOCALS.include?(ex.locale.to_s.downcase)
|
146
146
|
end
|
147
147
|
Time.zone = session["#{@appinstance.id}::user::timezone"] ? session["#{@appinstance.id}::user::timezone"] : @appinstance.timezone
|
148
148
|
ZuoraConnect.logger.debug("[#{@appinstance.blank? ? "N/A" : @appinstance.id}] Authenticate App Request Completed In - #{(Time.now - start_time).round(2)}s")
|