-
-
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
fix: respect client.logging
option for all logs
#4572
Conversation
Codecov ReportBase: 92.06% // Head: 92.19% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #4572 +/- ##
==========================================
+ Coverage 92.06% 92.19% +0.12%
==========================================
Files 16 16
Lines 1639 1639
Branches 617 617
==========================================
+ Hits 1509 1511 +2
+ Misses 119 117 -2
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
client-src/utils/log.js
Outdated
@@ -18,7 +18,8 @@ setLogLevel(defaultLevel); | |||
|
|||
const log = logger.getLogger(name); | |||
|
|||
const logEnabledFeatures = (features) => { | |||
const logEnabledFeatures = (features, logLevel = "info") => { | |||
setLogLevel(logLevel); |
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.
Let's avoid it and just move logEnabledFeatures
here
webpack-dev-server/client-src/index.js
Line 113 in 9baea53
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.
Done!
For Bugs and Features; did you add new tests?
Yes, updated snapshots.
Motivation / Use-Case
Fix #4566
Breaking Changes
No
Additional Info