function _logExecOutput(log, process) {
  let stdout = process.stdout || '';
  let stderr = process.stderr || '';

  if (process.platform === 'win32') {
    stdout = stdout.replace(/\r\n/g, '\n');
    stderr = stderr.replace(/\r\n/g, '\n');
  }

  if (stdout) {
    log.trace({ event: 'EXEC_SUCCESS', stdout: true }, stdout);
  }

  if (stderr) {
    log.trace({ event: 'EXEC_SUCCESS', stderr: true }, stderr);
  }

  if (!stdout && !stderr) {
    log.trace({ event: 'EXEC_SUCCESS' }, '');
  }
}
function _logExecOutput(log, process) {
  let stdout = process.stdout || '';
  let stderr = process.stderr || '';

  if (process.platform === 'win32') {
    stdout = stdout.replace(/\r\n/g, '\n');
    stderr = stderr.replace(/\r\n/g, '\n');
  }

  if (stdout) {
    log.trace({ event: 'EXEC_SUCCESS', stdout: true }, stdout);
  }

  if (stderr) {
    log.trace({ event: 'EXEC_SUCCESS', stderr: true }, stderr);
  }

  if (!stdout && !stderr) {
    log.trace({ event: 'EXEC_SUCCESS' }, '');
  }
}
function _logExecOutput ( log , process ) { let stdout = process . stdout || '' ; let stderr = process . stderr || '' ; if ( process . platform === 'win32' ) { stdout = stdout . replace ( / \r\n / g , '\n' ) ; stderr = stderr . replace ( / \r\n / g , '\n' ) ; } if ( stdout ) { log . trace ( { event : 'EXEC_SUCCESS' , stdout : true } , stdout ) ; } if ( stderr ) { log . trace ( { event : 'EXEC_SUCCESS' , stderr : true } , stderr ) ; } if ( ! stdout && ! stderr ) { log . trace ( { event : 'EXEC_SUCCESS' } , '' ) ; } }
/* istanbul ignore next
/ * istanbul ignore next
Logs the exec output to the log