You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warning.create('FastifyWarning', 'FSTWRN002', 'The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`', { unlimited: true })
All the declared warnings are spamming the application :)
Should either move opts inside "create" or add a new hashmap for the unlimited flag
The text was updated successfully, but these errors were encountered:
I saw this in the code a couple weeks ago. It wasn't clear to me if it would show as an issue or not. But clearly it does. A PR should be created that does not overwrite the global options with each new warning.
Basically, due to this piece of code:
process-warning/index.js
Line 94 in c0649f8
The last created warning decides wether all the created warnings are limited or unlimited. Thus in fastify, since last created warning is made unlimited:
https://github.com/fastify/fastify/blob/99a405a4e347629595ac5062c74d91675b1b34e5/lib/warnings.js#L58
All the declared warnings are spamming the application :)
Should either move opts inside "create" or add a new hashmap for the unlimited flag
The text was updated successfully, but these errors were encountered: