Open jduss4 opened 4 months ago
We may have made some decisions in this area by switching to using this type of block:
if (process.env.NODE_ENV == 'development') {
console.error('some error message')
}
I suspect this might benefit from being pulled out into a reusable function so that it would be easier to change up if in the future we want to alter the behavior.
As of #187 we have separated out the functions that make CF requests and logic that sits between those requests and the UI (controllers). We want to include logging that helps a developer determine when something has gone wrong while passing less detailed messages to the user.
The use of
console.error
lines in the app interferes with the functioning of the jest test suite. Broadly, we have a couple questions to figure out:This task is not for Implementing a final telemetry tool—it's for development use only.