mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 12:16:10 +00:00
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:
parent
609739179b
commit
a0bb82673a
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user