(
String configKey, Level logLevel, IOException ioe, long elapsedTime)
| 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)) { |
no test coverage detected