fix: add placeholder for logging call parameter (#1968)

The error was passed as a parameter for the log call but the
lack of the {} placeholder was excluding it from the resulting log line.
This commit is contained in:
Claudio Benfatto 2020-10-28 12:55:40 +01:00 committed by GitHub
parent 609739179b
commit a0bb82673a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,7 +127,7 @@ public class MetadataAuditEventsProcessor {
String urn = indexBuilderForDoc.getDocumentType().getMethod("getUrn").invoke(doc).toString();
elasticEvent.setId(URLEncoder.encode(urn.toLowerCase(), "UTF-8"));
} catch (UnsupportedEncodingException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
log.error("Failed to encode the urn with error ", e.toString());
log.error("Failed to encode the urn with error: {}", e.toString());
continue;
}
elasticEvent.setActionType(ChangeType.UPDATE);