putting the change behind the DET_DEBUG flag seems reasonable but I'll leave it up to you if asking users to reproduce the issue with the debug flag isn't or is not feasible/good.
Originally posted by @hamidzr in #5967 (review)
Yes, please do this. It feels really bad to have possible environment variables (set in startup-hook.sh for example) exposed by default in the log.
Something like:
export MYSTERIOUS_API_KEY=$(cat /foobar/.secret)
should really not be exposed in the log by default.