node_modules/contentful-batch-libs/dist/logging.js
// Write all log messages instead of infos to the error log file
Write all log messages instead of infos to the error log file
Write all log messages instead of infos to the error log file
function writeErrorLogFile(destination, errorLog) {
  var logFileData = errorLog.map(formatLogMessageLogfile);
  return _bfj2.default.write(destination, logFileData, {
    circular: 'ignore',
    space: 2
  }).then(function () {
    console.log('\nStored the detailed error log file at:');
    console.log(destination);
  }).catch(function (e) {
    console.error(e);
  });
}
function writeErrorLogFile ( destination , errorLog ) { var logFileData = errorLog . map ( formatLogMessageLogfile ) ; return _bfj2 . default . write ( destination , logFileData , { circular : 'ignore' , space : 2 } ) . then ( function ( ) { console . log ( '\nStored the detailed error log file at:' ) ; console . log ( destination ) ; } ) . catch ( function ( e ) { console . error ( e ) ; } ) ; }
Write all log messages instead of infos to the error log file
Write all log messages instead of infos to the error log file
// avoid crashing when writing the log file fails