Skip to content

feat(client): respect infrastructureLogging.level on Browser side as well #2889

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

Closed
wants to merge 1 commit into from

Conversation

hiroppy
Copy link
Member

@hiroppy hiroppy commented Dec 1, 2020

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Motivation / Use-Case

I think the existence of both infrastructureLogging.level and client.logger is confusing. So if client.logger is empty but infrastructureLogging.level is set, we should respect infrastructureLogging.level on Browser side as well.

This is my proposal so what do you think? @alexander-akait
If you agree with this, I'll add tests.

#2887

Breaking Changes

no

Additional Info

@hiroppy hiroppy requested a review from knagaitsev as a code owner December 1, 2020 05:56
@hiroppy hiroppy force-pushed the feature/respect-infrastructureLogging branch from 358eadc to 575abca Compare December 1, 2020 06:00
@hiroppy hiroppy force-pushed the feature/respect-infrastructureLogging branch from 575abca to ef88d0f Compare December 1, 2020 06:00
this.sockWrite([connection], 'logging', this.options.client.logging);
const clientLogLevel =
this.options.client.logging ||
(this.compiler.options.infrastructureLogging &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compilers can be array here

Copy link
Member

@alexander-akait alexander-akait Dec 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally it should be on plugin level (and getting from the compilation), but it is require more complex logic

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note there is getCompilerConfigArray() util.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it should be easy to fix

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I'll fix this tomorrow.

@snitin315
Copy link
Member

Closing in favor of #3613

@snitin315 snitin315 closed this Aug 11, 2021
@snitin315 snitin315 deleted the feature/respect-infrastructureLogging branch August 11, 2021 03:58
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 this pull request may close these issues.

4 participants