Skip to content

Commit

Permalink
Do not log sessions on debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Aug 23, 2024
1 parent 2d4c264 commit 5be75c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ public void run() {
}

StepFullJavaSession.FullJavaSession session = webview.getFromInput(getLogger(args), httpClient, getWebViewCallback());

ctx.log("Session from Webview: " + session);
ctx.log("Session from Webview: " + session.getMcProfile().getName());
onSuccessfulLogin(session);
} catch (InterruptedException e) {
ctx.log("Login process cancelled successfully.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class AccountValidator {
private static final URL URL = URLs.url("https://api.minecraftservices.com/entitlements/mcstore");

public ValidatedAccount validate(StepFullJavaSession.FullJavaSession session) throws AuthException {
log.debug("Validating session " + session);
log.debug("Validating session " + session.getMcProfile().getName() + " : " + session.getMcProfile().getId());
try {
HttpClient httpClient = MinecraftAuth.createHttpClient();
GetRequest getRequest = new GetRequest(URL);
Expand Down

0 comments on commit 5be75c5

Please sign in to comment.