refactor: use fastify logging in example
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 22:36:45 +0000 (00:36 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 22:36:45 +0000 (00:36 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
examples/typescript/http-server-pool/fastify/src/main.ts

index 8a617c6fa4ca3ae25dd5f326a4ae5e557c7b5c84..7db0b5196d973b98b51e6ac37dea5d12af9bbbf1 100644 (file)
@@ -24,7 +24,7 @@ await fastify.register(fastifyPoolifier, {
     concurrency: 8
   },
   errorHandler: (e: Error) => {
-    console.error(e)
+    fastify.log.error(e)
   }
 })