Skip to content

Commit 66ca27a

Browse files
Jiankai ZhengJiankai Zheng
authored andcommitted
refactor(logging): remove explicit toString() calls
1 parent 17ddf9f commit 66ca27a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/spotify/api/authorization/AuthorizationCodeFlow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public AuthorizationCodeFlow build() {
115115
authorizationCodeFlow.showDialog = this.showDialog;
116116

117117
logger.trace("AuthorizationCodeFlow successfully constructed.");
118-
logger.debug(authorizationCodeFlow.toString());
118+
logger.debug(String.valueOf(authorizationCodeFlow));
119119
return authorizationCodeFlow;
120120
}
121121
}

src/main/java/spotify/api/authorization/AuthorizationCodeFlowPKCE.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public AuthorizationCodeFlowPKCE build() {
138138
authorizationCodeFlowPKCE.codeChallenge = this.codeChallenge;
139139

140140
logger.trace("AuthorizationCodeFlowPKCE successfully constructed.");
141-
logger.debug(authorizationCodeFlowPKCE.toString());
141+
logger.debug(String.valueOf(authorizationCodeFlowPKCE));
142142
return authorizationCodeFlowPKCE;
143143
}
144144
}

src/main/java/spotify/utils/LoggingUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
public class LoggingUtil {
77

88
public static <T> void logHttpCall(final Logger logger, final Call<T> httpCall) {
9-
logger.debug("{} / {}", httpCall.request().method(), httpCall.request().url().toString());
9+
logger.debug("{} / {}", httpCall.request().method(), httpCall.request().url());
1010
}
1111
}

0 commit comments

Comments
 (0)