queerviolet / bones

MIT License
36 stars 119 forks source link

Namespace all `debug` calls to the app name #32

Closed glebec closed 7 years ago

glebec commented 7 years ago

Some of the debug calls are namespaced with the app name, e.g. my-cool-app:boot and my-cool-app:auth. Others are just top-level loggers, e.g. oauth and sql. We should namespace all debug calls so that all debugging info can be easily switched on with DEBUG=my-cool-app:*. Note this is more selective than DEBUG=*, which includes thousands of lines of debug code from dependencies e.g. Babel.