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:
Jason Tedor 2016-08-30 21:03:46 -04:00
parent 0a285a9a0c
commit 71b7818ead
1 changed files with 2 additions and 3 deletions

View File

@ -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);
}