-
-
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
feat: allow existing logger from context #898
Conversation
Codecov Report
@@ Coverage Diff @@
## master #898 +/- ##
==========================================
+ Coverage 49.27% 56.13% +6.86%
==========================================
Files 23 26 +3
Lines 2401 3962 +1561
==========================================
+ Hits 1183 2224 +1041
- Misses 1090 1536 +446
- Partials 128 202 +74
Continue to review full report at Codecov.
|
3f1eb62
to
d5a1fe3
Compare
We should reuse an existing context logger if in test context. This will allow test to setup act with a null logger to assert log messages. Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
d5a1fe3
to
be91b48
Compare
@catthehacker @cplee had to rebase against master, because "Allow maintainer edits" doesn't work for organization accounts: isaacs/github#1681 |
* nektos#898 * nektos#891 have both been merged upstream, so they're no longer required here.
* nektos#898 * nektos#891 have both been merged upstream, so they're no longer required here.
We should reuse an existing context logger if in test context.
This will allow test to setup act with a null logger to assert
log messages.