mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-16 11:23:32 +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();
|
String urn = indexBuilderForDoc.getDocumentType().getMethod("getUrn").invoke(doc).toString();
|
||||||
elasticEvent.setId(URLEncoder.encode(urn.toLowerCase(), "UTF-8"));
|
elasticEvent.setId(URLEncoder.encode(urn.toLowerCase(), "UTF-8"));
|
||||||
} catch (UnsupportedEncodingException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
|
} 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;
|
continue;
|
||||||
}
|
}
|
||||||
elasticEvent.setActionType(ChangeType.UPDATE);
|
elasticEvent.setActionType(ChangeType.UPDATE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user