-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Network/NLogViewer/Chainsaw Target - Enabled OptimizeBufferReuse by default, but not for sub classes #2560
Network/NLogViewer/Chainsaw Target - Enabled OptimizeBufferReuse by default, but not for sub classes #2560
Conversation
20425d2
to
0371bb4
Compare
Codecov Report
@@ Coverage Diff @@
## master #2560 +/- ##
=======================================
- Coverage 82% 81% -<1%
=======================================
Files 323 323
Lines 23430 23456 +26
Branches 2936 2940 +4
=======================================
- Hits 19097 19087 -10
- Misses 3554 3575 +21
- Partials 779 794 +15 |
src/NLog/Targets/ChainsawTarget.cs
Outdated
@@ -67,6 +67,7 @@ public class ChainsawTarget : NLogViewerTarget | |||
public ChainsawTarget() | |||
{ | |||
IncludeNLogData = false; | |||
OptimizeBufferReuse = GetType() == typeof(ChainsawTarget); |
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.
Why not just true? Because of custom sub classes?
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.
Yes minimum amount of surprises possible.
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.
Please add this as code comments, thanks in advance!
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.
Added comment
6e5f54a
to
1fcefdf
Compare
1fcefdf
to
36b11c8
Compare
No description provided.