Remove unnecessary logging of exception message
This commit removes an unnecessary logging of an exception message from HttpEmailAttachementParser#toAttachment since the full exception is logged anyway. Original commit: elastic/x-pack-elasticsearch@55d4bada00
This commit is contained in:
parent
0a285a9a0c
commit
71b7818ead
|
@ -112,12 +112,11 @@ public class HttpEmailAttachementParser implements EmailAttachmentParser<HttpReq
|
|||
} catch (IOException e) {
|
||||
logger.error(
|
||||
(Supplier<?>) () -> new ParameterizedMessage(
|
||||
"Error executing HTTP request: [host[{}], port[{}], method[{}], path[{}]: [{}]",
|
||||
"Error executing HTTP request: [host[{}], port[{}], method[{}], path[{}]",
|
||||
httpRequest.host(),
|
||||
httpRequest.port(),
|
||||
httpRequest.method(),
|
||||
httpRequest.path(),
|
||||
e.getMessage()),
|
||||
httpRequest.path()),
|
||||
e);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue