// sample onSyncFailure script that just logs the error
(function () {
logger.warn("onSyncFailure script invoked with systemIdentifier: {} objectType: {} failedRecordUid: {} failedRecord: {} exception {}",
syncFailure.systemIdentifier,
syncFailure.objectType,
syncFailure.uid,
syncFailure.failedRecord,
failureCause.toString());
}());