-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: support github.com/sirupsen/logrus #370
Conversation
func(logger logrus.Logger) logrus.Logger { | ||
logger.AddHook(&logrus.DDContextLogHook{}) | ||
return logger | ||
}({{ . }}) |
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.
I don't love how this appears to be making more copies than strictly necessary; but I reckon I might be overly pessimistic with how the compiler will treat that, and I don't think this is a line that ought to be on a hot path anyway...
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #370 +/- ##
==========================================
+ Coverage 60.28% 60.66% +0.37%
==========================================
Files 166 171 +5
Lines 11973 12087 +114
==========================================
+ Hits 7218 7332 +114
Misses 4280 4280
Partials 475 475
|
No description provided.