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

Respect logLevel #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Respect logLevel #107

wants to merge 1 commit into from

Conversation

filipsobol
Copy link

I have a script that runs Vite dozens of times and I only want it to log messages when I change the logLevel. However, this plugin always logs messages to the console, regardless of the logLevel configuration option in Vite.

This can be easily fixed by using the this.debug(), this.info(), this.warn(), and this.error() helpers. I used this.info() instead of this.debug() because the lowest level that Vite accepts via configuration is info (see logLevel).

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.

1 participant