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
*[submitRestRequest](docs/sdks/restrequest/README.md#submitrestrequest) - Submit a valid REST request
716
716
@@ -1686,9 +1686,11 @@ public class Application {
1686
1686
## Debugging
1687
1687
1688
1688
### Debug
1689
+
1689
1690
You can setup your SDK to emit debug logs for SDK requests and responses.
1690
1691
1691
1692
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1693
+
1692
1694
```java
1693
1695
SDK.builder()
1694
1696
.enableHTTPDebugLogging(true)
@@ -1706,10 +1708,11 @@ Response body:
1706
1708
"token": "global"
1707
1709
}
1708
1710
```
1709
-
__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`.
1711
+
__WARNING__: This logging should only be 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`.
1710
1712
1711
1713
__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.
1712
1714
1715
+
1713
1716
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
0 commit comments