MCPcopy Index your code
hub / github.com/OpenFeign/feign / logIOException

Method logIOException

core/src/main/java/feign/Logger.java:140–155  ·  view source on GitHub ↗
(
      String configKey, Level logLevel, IOException ioe, long elapsedTime)

Source from the content-addressed store, hash-verified

138 }
139
140 protected IOException logIOException(
141 String configKey, Level logLevel, IOException ioe, long elapsedTime) {
142 log(
143 configKey,
144 "<--- ERROR %s: %s (%sms)",
145 ioe.getClass().getSimpleName(),
146 ioe.getMessage(),
147 elapsedTime);
148 if (logLevel.ordinal() >= Level.FULL.ordinal()) {
149 StringWriter sw = new StringWriter();
150 ioe.printStackTrace(new PrintWriter(sw));
151 log(configKey, "%s", sw.toString());
152 log(configKey, "<--- END ERROR");
153 }
154 return ioe;
155 }
156
157 protected static String resolveProtocolVersion(Request.ProtocolVersion protocolVersion) {
158 if (nonNull(protocolVersion)) {

Callers 4

executeAndDecodeMethod · 0.80
executeAndDecodeMethod · 0.80
handleResponseMethod · 0.80
logIoExceptionMethod · 0.80

Calls 3

logMethod · 0.95
getMessageMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected