fastify / fastify-plugin

Plugin helper for Fastify
MIT License
197 stars 42 forks source link

make getPluginName resilient against too low stackTraceLimit #209

Closed Uzlopak closed 1 year ago

Uzlopak commented 1 year ago

If somebody sets Error.stackTraceLimit to 0, because there are some performance improvements, then getPluginName would not work properly. We set the stackTraceLimit to 10, which is default by node, so we ensure that getPluginName will still work properly.

Checklist