Skip to content
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

No way to disable log about enabled features #4566

Closed
danyadev opened this issue Sep 14, 2022 · 5 comments · Fixed by #4572
Closed

No way to disable log about enabled features #4566

danyadev opened this issue Sep 14, 2022 · 5 comments · Fixed by #4572

Comments

@danyadev
Copy link

Bug report

In the webpack config, I indicated that only warnings or errors should be logged, but in the console I see a useless message

image

Actual Behavior

image

Expected Behavior

I want not to see it

How Do We Reproduce?

just use any webpack config with latest webpack-dev-server version

Please paste the results of npx webpack-cli info here, and mention other relevant information

Possible solution: move logging after setting the logging level, or log to the console where webpack was run

logEnabledFeatures(enabledFeatures);

image

@alexander-akait
Copy link
Member

Please use https://webpack.js.org/configuration/dev-server/#logging, set to none

@danyadev
Copy link
Author

this doesn't work because this message is logged before the logging type is set from the config

@alexander-akait
Copy link
Member

We set it here

if (parsedResourceQuery.logging) {
- i.e. above

@alexander-akait
Copy link
Member

Oh, we don't respect it

const logEnabledFeatures = (features) => {
, @snitin315 Looks like we have a small regression

@snitin315
Copy link
Member

I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants