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: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,15 +50,15 @@ The samples below show how a published SDK artifact is used:
50
50
51
51
Gradle:
52
52
```groovy
53
-
implementation 'com.apideck:unify:0.27.6'
53
+
implementation 'com.apideck:unify:0.27.7'
54
54
```
55
55
56
56
Maven:
57
57
```xml
58
58
<dependency>
59
59
<groupId>com.apideck</groupId>
60
60
<artifactId>unify</artifactId>
61
-
<version>0.27.6</version>
61
+
<version>0.27.7</version>
62
62
</dependency>
63
63
```
64
64
@@ -1487,9 +1487,11 @@ public class Application {
1487
1487
## Debugging
1488
1488
1489
1489
### Debug
1490
+
1490
1491
You can setup your SDK to emit debug logs for SDK requests and responses.
1491
1492
1492
1493
For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so:
1494
+
1493
1495
```java
1494
1496
SDK.builder()
1495
1497
.enableHTTPDebugLogging(true)
@@ -1507,10 +1509,11 @@ Response body:
1507
1509
"token": "global"
1508
1510
}
1509
1511
```
1510
-
__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`.
1512
+
__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`.
1511
1513
1512
1514
__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.
1513
1515
1516
+
1514
1517
Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies.
0 commit comments