You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, I think DEBUG_HIDE_DATE isn't working. The README.md says:
you can set a few environment variables that will change the behavior of the debug logging
but it does not articulate what you can set them to. After reading the code:
if (/^(yes|on|true|enabled)$/i.test(val)) {
val = true;
} else if (/^(no|off|false|disabled)$/i.test(val)) {
val = false;
I'm guessing they can be set to yes, on, true or enabled (positive) or no, off, false or disabled (negative).
I verified this assertion with DEBUG_COLORS:
set DEBUG=present:*,rcf:* && set DEBUG_COLORS=no && nodemon ./bin/www
which yields colourless output correctly.
I then tested DEBUG_HIDE_DATE using the same mechanism:
set DEBUG=present:*,rcf:* && set DEBUG_COLORS=no && set DEBUG_HIDE_DATE=yes && nodemon ./bin/www
which still showed the date, albeit in monochrome. I then tried other variants like disabled ,enabled and off, but the output was the same (with date).
Mon, 22 Jun 2020 12:01:12 GMT present:app microservice initialised
I did wonder if it was limited to my environment (Windows\Cygwin) so I rolled a .Dockerfile to push up a container with the following ENV vars:
I ran the container in a pod on my linux-based K8S cluster and the output was the same (with date). I also tried the enabled and disabled variants just in case I'd misinterpretted grammar. Any kind of clarification appreciated, or if it's deprecated perhaps it could be removed from the docs?
The text was updated successfully, but these errors were encountered:
Hi folks, I think
DEBUG_HIDE_DATE
isn't working. TheREADME.md
says:but it does not articulate what you can set them to. After reading the code:
I'm guessing they can be set to
yes
,on
,true
orenabled
(positive) orno
,off
,false
ordisabled
(negative).I verified this assertion with DEBUG_COLORS:
set DEBUG=present:*,rcf:* && set DEBUG_COLORS=no && nodemon ./bin/www
which yields colourless output correctly.
I then tested
DEBUG_HIDE_DATE
using the same mechanism:set DEBUG=present:*,rcf:* && set DEBUG_COLORS=no && set DEBUG_HIDE_DATE=yes && nodemon ./bin/www
which still showed the date, albeit in monochrome. I then tried other variants like
disabled
,enabled
andoff
, but the output was the same (with date).I did wonder if it was limited to my environment (Windows\Cygwin) so I rolled a .Dockerfile to push up a container with the following ENV vars:
I ran the container in a pod on my linux-based K8S cluster and the output was the same (with date). I also tried the
enabled
anddisabled
variants just in case I'd misinterpretted grammar. Any kind of clarification appreciated, or if it's deprecated perhaps it could be removed from the docs?The text was updated successfully, but these errors were encountered: