async function doNotCopy()

in src/consumer.js [179:190]


async function doNotCopy(evt) {
  evt.EventType = 'snapshot-no-copy'
  let params = {
    TopicArn: producer_topic_arn,
    Subject: "DRACO Event",
    Message: JSON.stringify(evt)
  };
  let output = await sns.publish(params).promise();
  console.warn(`Not Copying ${evt.SnapshotType} Snapshot ${evt.SourceId}: ${evt.Reason}`);
  if (DEBUG > 1) console.debug(`Publish response: ${JSON.stringify(output)}`);
  if (DEBUG > 0) console.debug(`Published: ${JSON.stringify(evt)}`);
}