How to use the corvid-local-logger.logAsyncErrors function in corvid-local-logger

To help you get started, we’ve selected a few corvid-local-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix-incubator / corvid / packages / corvid-local-server / src / server.js View on Github external
}
  if (options.override) {
    type = "FORCE_PULL";
  }
  return startServer(siteRootPath, {
    type
  });
};
const startInEditMode = siteRootPath =>
  startServer(siteRootPath, {
    type: "EDIT"
  });

module.exports = {
  startInCloneMode: logAsyncErrors(startInCloneMode),
  startInEditMode: logAsyncErrors(startInEditMode)
};
github wix-incubator / corvid / packages / corvid-local-server / src / server.js View on Github external
type = "MOVE_PULL";
  }
  if (options.override) {
    type = "FORCE_PULL";
  }
  return startServer(siteRootPath, {
    type
  });
};
const startInEditMode = siteRootPath =>
  startServer(siteRootPath, {
    type: "EDIT"
  });

module.exports = {
  startInCloneMode: logAsyncErrors(startInCloneMode),
  startInEditMode: logAsyncErrors(startInEditMode)
};