You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/api.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,8 @@ OpenWhisk credentials can also be read from environment variables `__OW_NAMESPAC
197
197
|[config]| <code>object</code> | used to init the sdk |
198
198
|[config.ow]|[<code>OpenWhiskCredentials</code>](#OpenWhiskCredentials)|[OpenWhiskCredentials](#OpenWhiskCredentials). Set those if you want to use ootb credentials to access the state management service. OpenWhisk namespace and auth can also be passed through environment variables: `__OW_NAMESPACE` and `__OW_API_KEY`|
199
199
|[config.region]| <code>string</code> | optional region to use, accepted values: `amer` (default), `emea`, `apac`|
200
+
|[config.logLevel]| <code>string</code> | optional log level for the HttpExponentialBackoff instance |
201
+
|[config.logRetryAfterSeconds]| <code>number</code> | Defaults to 10. if the request has to retry because of a 429, it will log the retry attempt as a warning if the Retry-After value is greater than this number. Set to 0 to disable. |
Copy file name to clipboardExpand all lines: lib/AdobeState.js
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -149,8 +149,10 @@ class AdobeState {
149
149
* @param {string} apikey the apikey for the Adobe State Store
150
150
* @param {string} env the Adobe environment (AIO_CLI_ENV)
151
151
* @param {('amer'|'apac'|'emea')} [region] the region for the Adobe State Store. defaults to 'amer'
152
+
* @param {string} [logLevel] the log level for the HttpExponentialBackoff instance
153
+
* @param {number} [logRetryAfterSeconds] if the request has to retry because of a 429, it will log the retry attempt as a warning if the Retry-After value is greater than this number. Set to 0 to disable.
* namespace and auth can also be passed through environment variables:
44
45
* `__OW_NAMESPACE` and `__OW_API_KEY`
45
46
* @param {string} [config.region] optional region to use, accepted values: `amer` (default), `emea`, `apac`
47
+
* @param {string} [config.logLevel] optional log level for the HttpExponentialBackoff instance
48
+
* @param {number} [config.logRetryAfterSeconds] Defaults to 10. if the request has to retry because of a 429, it will log the retry attempt as a warning if the Retry-After value is greater than this number. Set to 0 to disable.
46
49
* @returns {Promise<AdobeState>} An AdobeState instance
Copy file name to clipboardExpand all lines: types.d.ts
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -166,10 +166,14 @@ export type OpenWhiskCredentials = {
166
166
* namespace and auth can also be passed through environment variables:
167
167
* `__OW_NAMESPACE` and `__OW_API_KEY`
168
168
* @param [config.region] - optional region to use, accepted values: `amer` (default), `emea`, `apac`
169
+
* @param [config.logLevel] - optional log level for the HttpExponentialBackoff instance
170
+
* @param [config.logRetryAfterSeconds] - Defaults to 10. if the request has to retry because of a 429, it will log the retry attempt as a warning if the Retry-After value is greater than this number. Set to 0 to disable.
0 commit comments