-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove dead code #8
Conversation
Current coverage is
|
Your opinion on this change please :) |
Removing the code in which we shouldn't end up is certainly a good idea, however I'm not so confident with dropping the log level to "debug" by default as most Logging (NLog and others) configurations I saw up to now are not keeping that level / writing it somewhere.... thus the "danger" of having potentially important messages dropped But you certainly have more experience in that field |
Well before it was 'ArgumentOutOfRangeException` instead of debug level as fallback? (in the high unlikely case) - so we lose less messages? |
Sure, didn't want to say my initial implementation is really "better" but I tend to stick to the principle "let it crash" in the meaning that if something unexpected happens (some logging level that wasn't known to me at time of programming pops up) I prefer (from a DevOps POV) that the application tells it to me in the most obvious way |
But, anyhow that was my standard policy, but I'm not forcing it. If the other way around is the standard in the NLog project I've got no problem sticking to that, I wanted just to point out that "Debug" as a target level feels weird to me; I'd tend to put the flags as high as possible in the case of something unexpected, that's all |
Thanks for the feedback @pysco68. It was easy to create an unit test with the invalid value, hence an exception isn't bad. superseded by #9 |
Remove dead code by falling back to Debug