in aws-synthetics-canary/src/main/java/com/amazon/synthetics/canary/ActionLogger.java [43:58]
public void log(Exception exception) {
Payload payload = new Payload(
action,
awsAccountId,
context.getRetryKey(),
context.getRemainingRetryCount(),
model.getName(),
null,
exception);
try {
String json = mapper.writeValueAsString(payload);
logger.log(json);
} catch (JsonProcessingException e) {
e.printStackTrace();
}
}