Skip to content

.json() errors logs are now opt in

Compare
Choose a tag to compare
@razshare razshare released this 16 Mar 08:33
· 39 commits to main since this release

Changes

  • function .json() no longer logs errors by default, you now have to opt in to log these errors.
    For example
    connection.select('stats').json(function or({error}) {
      console.error("Could not parse stats!", error)
      return { cpu_usage: '0.00%', memory: '0.00 MB', time: 0 }
    })