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
A logging framework/facade has not yet been adopted but is under consideration.
83
83
84
-
For request and response logging (especially json bodies) use:
84
+
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
85
85
```java
86
-
SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning)
86
+
SDK.builder()
87
+
.enableHTTPDebugLogging(true)
88
+
.build();
87
89
```
88
90
Example output:
89
91
```
@@ -97,7 +99,9 @@ Response body:
97
99
"token": "global"
98
100
}
99
101
```
100
-
WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
102
+
__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. <i>Authorization</i> headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`.
103
+
104
+
__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting.
101
105
102
106
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
103
107
<!-- End SDK Installation [installation] -->
@@ -330,6 +334,8 @@ var res = sdk.auth().getUserInfo().call();
330
334
*[getWorkflowsList](docs/sdks/workflows/README.md#getworkflowslist) - Retrieve a list of available Maestro workflows
331
335
*[getWorkflowTriggerRequirements](docs/sdks/workflows/README.md#getworkflowtriggerrequirements) - Retrieve trigger requirements for a specific Maestro workflow
332
336
*[triggerWorkflow](docs/sdks/workflows/README.md#triggerworkflow) - Trigger a new instance of a Maestro workflow
337
+
*[pauseNewWorkflowInstances](docs/sdks/workflows/README.md#pausenewworkflowinstances) - Pause an Active Workflow
338
+
*[resumePausedWorkflow](docs/sdks/workflows/README.md#resumepausedworkflow) - Resume a Paused Workflow
333
339
334
340
### [navigator()](docs/sdks/navigator/README.md)
335
341
@@ -508,10 +514,10 @@ public class Application {
508
514
509
515
You can override the default server globally using the `.server(AvailableServers server)` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
0 commit comments