Skip to content

Commit 0e4a1c8

Browse files
rfalkeadriancole
authored andcommitted
Make logRetry() and logIOException() protected to allow overriding these methods in custom loggers. (OpenFeign#469)
1 parent 66b6e96 commit 0e4a1c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/feign/Logger.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected void logRequest(String configKey, Level logLevel, Request request) {
7171
}
7272
}
7373

74-
void logRetry(String configKey, Level logLevel) {
74+
protected void logRetry(String configKey, Level logLevel) {
7575
log(configKey, "---> RETRYING");
7676
}
7777

@@ -107,7 +107,7 @@ protected Response logAndRebufferResponse(String configKey, Level logLevel, Resp
107107
return response;
108108
}
109109

110-
IOException logIOException(String configKey, Level logLevel, IOException ioe, long elapsedTime) {
110+
protected IOException logIOException(String configKey, Level logLevel, IOException ioe, long elapsedTime) {
111111
log(configKey, "<--- ERROR %s: %s (%sms)", ioe.getClass().getSimpleName(), ioe.getMessage(),
112112
elapsedTime);
113113
if (logLevel.ordinal() >= Level.FULL.ordinal()) {

0 commit comments

Comments
 (0)