-
Notifications
You must be signed in to change notification settings - Fork 2k
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
companion: set debug based on NODE_ENV only if the env var is available #2189
Conversation
Hm, should we use |
didn't want to go with that because of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough :) happy with this then!
I also wonder if we need to be explicit that we want to expose debug information, otherwise something like |
In addition we should replace actual credentials with:
in our lowest level logging function (so right before it hits stdout/stderr) |
@kvz do you think it's fine if I make this change in a separate PR? I'm suggesting this because I think it my be subject to a longer review process. |
Yes 👌 |
@arturi so you mean to explicitly mention this in the docs? |
in a system where the
NODE_ENV
variable is never used as part of their config variables to begin with, it'll be unsafe to assume the system is indebug
mode by merely checkingNODE_ENV !== 'production'