netlify/netlify-plugin-edge-handlers

Feat: add silent mode

erezrokah opened this issue · 0 comments

Which problem is this feature request solving?

The CLI uses

async function uploadBundle(buf, info, deployId, apiToken) {
as a part of netlify/cli#1236, which prints a message to the log:
console.log("Bundle already exists. Skipping upload...");

That messes up the CLI logs, especially when running with the --json flag.

Describe the solution you'd like

Ability to pass a flag that prevents the plugin from printing log messages (any other configuration will do).

Describe alternatives you've considered

  • Patch console.log implementation before calling upload, restoring after.
  • Handle uploading in the CLI

Can you submit a pull request?

Yes