-
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
Call NLogPackageLoader.Preload (static) for NLog packages on load #1917
Conversation
d85621d
to
c11e7e8
Compare
Codecov Report
@@ Coverage Diff @@
## master #1917 +/- ##
=======================================
+ Coverage 82% 82% +<1%
=======================================
Files 285 285
Lines 19592 19628 +36
Branches 2290 2293 +3
=======================================
+ Hits 15980 16021 +41
+ Misses 3060 3040 -20
- Partials 552 567 +15 Continue to review full report at Codecov.
|
InternalLogger.Warn(e,"Preload invoked for '{0}' failed", type.FullName); | ||
} | ||
|
||
InternalLogger.Debug("Preload succesfully invoked for '{0}'", type.FullName); |
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.
This line will be executed, even if invoke has been failed. I suggest that move this line to the line 267 (after the invoke).
} | ||
else | ||
{ | ||
InternalLogger.Debug("NLogPackageLoader preload method, but isn't static"); |
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.
Log message would be improved as:
NLogPackageLoader contains a preload method, but it isn't static.
} | ||
|
||
/// <summary> | ||
/// Call Preload for <paramref name="type"/>. The method should be static. |
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.
It would be improved as:
Calls the preload method for <paramref name="type"/>
. The preload method should be static.
c11e7e8
to
3322076
Compare
3322076
to
f954491
Compare
@UgurAldanmaz thanks for the review |
This change is
related: #1530