Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/main/java/com/auth0/client/auth/AuthAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,14 @@ public void setTelemetry(Telemetry telemetry) {
}

/**
* @deprecated use the logging configuration available in {@link HttpOptions#setLoggingOptions(LoggingOptions)}
*
* Whether to enable or not the current HTTP Logger for every request and response line, body, and headers.
* <strong>Warning: Enabling logging can leek sensitive information, and should only be done in a controlled, non-production environment.</strong>
*
* @param enabled whether to enable the HTTP logger or not.
*/
@Deprecated
public void setLoggingEnabled(boolean enabled) {
logging.setLevel(enabled ? Level.BODY : Level.NONE);
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/auth0/client/mgmt/ManagementAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,14 @@ public void setTelemetry(Telemetry telemetry) {
}

/**
* @deprecated use the logging configuration available in {@link HttpOptions#setLoggingOptions(LoggingOptions)}
*
* Whether to enable or not the current HTTP Logger for every request and response line, body, and headers.
* <strong>Warning: Enabling logging can leek sensitive information, and should only be done in a controlled, non-production environment.</strong>
*
* @param enabled whether to enable the HTTP logger or not.
*/
@Deprecated
public void setLoggingEnabled(boolean enabled) {
logging.setLevel(enabled ? Level.BODY : Level.NONE);
}
Expand Down