report.js 311 Bytes
const MODULE_NAME = 'REPORT';

const pull = require('komodo-sdk/gateway/pull');
const logger = require('tektrans-logger');

module.exports = (xid, data) => {
    if (!data) return;

    logger.verbose(`${MODULE_NAME} BAACC918: Reporting to CORE`, {
        xid,
        data,
    });

    pull.report(data);
};