Add env var for more console.log (dev)

Also include update to error calls