From 0e778d0f208e36e0c4a15afff1a1e321c575fd67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 12 Aug 2023 00:36:45 +0200 Subject: [PATCH] refactor: use fastify logging in example MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/http-server-pool/fastify/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }) -- 2.34.1