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
What are you trying to achieve, or the steps to reproduce?
I'm trying to see the fastify.log statements that get printed during my test. This only seems possible if fastify is logging to stderr instead of stdout (where it is swallowed by tap). I'm trying to instantiate a custom logger by using the build method of
the helper from fastify-cli:
You have already researched for similar issues?
Yes, nothing found
What are you trying to achieve, or the steps to reproduce?
I'm trying to see the
fastify.log
statements that get printed during my test. This only seems possible if fastify is logging to stderr instead of stdout (where it is swallowed by tap). I'm trying to instantiate a custom logger by using thebuild
method ofthe helper from
fastify-cli
:If I pass the configuration block to
Fastify(...)
and build the server myself, it will instantiate the logger correctly.What was the result you received?
The log was still to stdout and tap swallowed it.
What did you expect?
I would expect fastify to log to stderr and show the messages during a
npm run test
Context
I can create a demo repo if that helps?
The text was updated successfully, but these errors were encountered: