superfluid-finance / superfluid-protocol-preview

The preview version of superfluid protocol.
36 stars 18 forks source link

Feature: Debug statement control #7

Open pi0neerpat opened 3 years ago

pi0neerpat commented 3 years ago

I'd like to propose two things:

  1. Allow silencing console.logs
  2. If desired, allow more logs

One solution to this is adding another option here:

https://github.com/superfluid-finance/superfluid-protocol-preview/blob/8ae78d1222066bbfce0f5b8a850f4eb3a24c2ff4/ethereum-contracts/js-sdk/Framework.js#L10

And be used like this:

    const sf = new SuperfluidSDK.Framework({
      // ...
      debug: "off" // available: ["off", "on", "verbose"] default: "on"
    })