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

custom warn function #779

Closed
markmartirosian opened this issue Jul 17, 2022 · 4 comments · Fixed by #780
Closed

custom warn function #779

markmartirosian opened this issue Jul 17, 2022 · 4 comments · Fixed by #780

Comments

@markmartirosian
Copy link

Is your feature request related to a problem? Please describe.

console.warn pollutes log output in containerized SSR application.

Describe the solution you'd like

A warn configuration option.

@Demivan
Copy link
Member

Demivan commented Jul 17, 2022

There should not be a warning in production.

if (process.env.NODE_ENV !== 'production')
console.warn(`[fluent-vue] ${message}`, ...args)

Or you want to disable it in development too?

@Demivan
Copy link
Member

Demivan commented Jul 18, 2022

@markmartirosian Check if #780 implements all that you need.

@markmartirosian
Copy link
Author

@Demivan I think it does, thanks a lot!

@Demivan
Copy link
Member

Demivan commented Jul 18, 2022

Published v3.1.0 with this feature

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

Successfully merging a pull request may close this issue.

2 participants