Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate setLoggingEnabled on API clients #396

Merged
merged 1 commit into from
Jan 20, 2022
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