debug icon indicating copy to clipboard operation
debug copied to clipboard

DEBUG_HIDE_DATE doesn't exist / do anything

Open joshuahhh opened this issue 1 year ago • 1 comments

The readme refers to an env var DEBUG_HIDE_DATE that's supposed to suppress printing a date with log output, but the code doesn't seem to do anything with this variable.

joshuahhh avatar Feb 24 '24 06:02 joshuahhh

I'm doing this as a temporary workaround:

import debug from 'debug';

(debug.inspectOpts ??= {}).hideDate ??= !!process.env.DEBUG_HIDE_DATE;

jmezzacappa avatar Sep 03 '24 14:09 jmezzacappa