Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Remove dead code #8

wants to merge 1 commit into from

Conversation

304NotModified
Copy link
Member

Remove dead code by falling back to Debug

@codecov-io
Copy link

Current coverage is 100.00%

Merging #8 into master will increase coverage by +4.26% as of 583f2a9

@@            master      #8   diff @@
======================================
  Files            2       2       
  Stmts           47      42     -5
  Branches         3       3       
  Methods          0       0       
======================================
- Hit             45      42     -3
+ Partial          1       0     -1
+ Missed           1       0     -1

Review entire Coverage Diff as of 583f2a9

Powered by Codecov. Updated on successful CI builds.

@304NotModified
Copy link
Member Author

@pysco68

Your opinion on this change please :)

@pysco68
Copy link
Contributor

pysco68 commented Mar 11, 2016

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

@304NotModified
Copy link
Member Author

configurations I saw up to now are not keeping that level / writing it somewhere.... thus the "danger" of having potentially important messages dropped

Well before it was 'ArgumentOutOfRangeException` instead of debug level as fallback? (in the high unlikely case) - so we lose less messages?

@pysco68
Copy link
Contributor

pysco68 commented Mar 11, 2016

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

@pysco68
Copy link
Contributor

pysco68 commented Mar 11, 2016

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

@304NotModified
Copy link
Member Author

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;

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants