Skip to content

Respect logLevel#107

Merged
richardtallent merged 1 commit intorichardtallent:mainfrom
filipsobol:main
Mar 10, 2025
Merged

Respect logLevel#107
richardtallent merged 1 commit intorichardtallent:mainfrom
filipsobol:main

Conversation

@filipsobol
Copy link
Contributor

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).

@richardtallent richardtallent merged commit 42f55e2 into richardtallent:main Mar 10, 2025
0 of 2 checks passed
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.

2 participants