From: Jérôme Benoit Date: Fri, 11 Aug 2023 22:36:45 +0000 (+0200) Subject: refactor: use fastify logging in example X-Git-Tag: v2.6.24~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0e778d0f208e36e0c4a15afff1a1e321c575fd67;p=poolifier.git refactor: use fastify logging in example Signed-off-by: Jérôme Benoit --- diff --git a/examples/typescript/http-server-pool/fastify/src/main.ts b/examples/typescript/http-server-pool/fastify/src/main.ts index 8a617c6f..7db0b519 100644 --- a/examples/typescript/http-server-pool/fastify/src/main.ts +++ b/examples/typescript/http-server-pool/fastify/src/main.ts @@ -24,7 +24,7 @@ await fastify.register(fastifyPoolifier, { concurrency: 8 }, errorHandler: (e: Error) => { - console.error(e) + fastify.log.error(e) } })