Sam Hulick
09/27/2021, 11:04 PMDEBUG=rc:* yarn start
to get debugging messages for my own stuff, I get a fair amount of other debugging messages, because they’re just checking for the existence of process.env.DEBUG
. (to clarify, I’m using the npm debug
package which lets you namespace your stuff to get selective debugging messages)Frank
process.env.DEBUG
when the --verbose
flag is passed in. I think you are seeing the verbose logs.Sam Hulick
09/28/2021, 12:08 AMdebug
package let you change which env var it reads fromthdxr
09/28/2021, 12:51 AMSam Hulick
09/28/2021, 12:51 AMimport createDebug from 'debug';
const debug = createDebug('namespace:something');
Sam Hulick
09/28/2021, 12:51 AMDEBUG=namespace:* yarn start
Sam Hulick
09/28/2021, 12:52 AMDEBUG
and start spitting stuff out. which is understandable.. heck, I didn’t even know about the debug npm package till today 😄 118 million downloads per week though..whew!Yousef
09/28/2021, 1:39 AM