mozilla-sensorweb / sensorweb-server

Mozilla Public License 2.0
3 stars 6 forks source link

Change the way the logging is made quiet in server.js #61

Open julienw opened 7 years ago

julienw commented 7 years ago

Currently we shut down the logging if we're in the test environment (see https://github.com/mozilla-sensorweb/sensorweb-server/blob/1da3319021c746d29a94b9c69cd6f7031a846a45/src/server.js#L32). This is both fragile and not effective -- for example it's still used in circleci.

Instead we should use an env variable to control this. One possibility is to shush it when using the env vairable QUIET.