-
-
Notifications
You must be signed in to change notification settings - Fork 3.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
app.silent option to turn off err logging #486
Conversation
lgtm. I guess this sort of crosses over into the logging discussions we had somewhere else too |
alrighty. are we going to consider this a breaking change? i guess it does change what logs when and based on what... so kinda breaks the existing API. but then again, it is for logging so meh. |
Works for me too. I'm okay wither way w.r.t. to versioning, but based on expierence with other projects people tend to complain a lot even if you change logging and don't follow semver strictly. |
@travisjeffery yeah, i think a major version would be a good idea... like 1.1 |
Since it's just test related I think it would be fine, unless we leave that 'test' == check in until 2.x, doesn't really hurt |
@tj Ah ok, you're right- would you like me to add the 'test'' env check back in AFTER the |
i.e. if (this.silent) return;
if ('test' == this.env) return; so codebases relying on the 'test' env to not log won't be affected by this change. in v2, we can remove the 'test' env check and make people use the silent option? @tj |
sounds great! maybe throwing in a comment so we remember to deprecate it later |
done- 6c19c41. yay for semver! |
LGTM. |
app.silent option to turn off err logging
Solves #447
// cc participants- @jonathanong @tj @cesarandreu