sharedstreets / sharedstreets-js

SharedStreets (Node.js & Javascript)
https://sharedstreets.io
MIT License
78 stars 25 forks source link

lib: don't log when loading graph #40

Open morganherlocker opened 5 years ago

morganherlocker commented 5 years ago

Logs should be returned from an optional stream, if at all from the library. In the long run, this prevents logging getting in the way of test output or causing noise in server logs.

morganherlocker commented 5 years ago

Adding to this, in cases where we do return debug/progress info, such as the CLI, let's log to stderr instead of stdout. Logging to stdout prevents us from piping data from the CLI in a valid format.