Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEBUG_HIDE_DATE doesn't exist / do anything #959

Open
joshuahhh opened this issue Feb 24, 2024 · 1 comment
Open

DEBUG_HIDE_DATE doesn't exist / do anything #959

joshuahhh opened this issue Feb 24, 2024 · 1 comment

Comments

@joshuahhh
Copy link

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.

@jmezzacappa
Copy link

I'm doing this as a temporary workaround:

import debug from 'debug';

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants
@joshuahhh @jmezzacappa and others