From 7ca96140118010c8cee1115425b3964f2ec256d6 Mon Sep 17 00:00:00 2001 From: Bianca Cristina da Silva Date: Wed, 30 Oct 2024 15:33:38 -0300 Subject: [PATCH] faststore-poc(SFS-1709): test custom server --- packages/core/server.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/core/server.js b/packages/core/server.js index 4b308ea05e..18d04aa37f 100644 --- a/packages/core/server.js +++ b/packages/core/server.js @@ -2,7 +2,6 @@ const http = require('http') const url = require('url') const NextServer = require('next/dist/server/next-server').default const { config } = require('./.next/required-server-files.json') -const pinoLogger = require('pino') const { parse } = require('url') // eslint-disable-next-line turbo/no-undeclared-env-vars @@ -24,20 +23,13 @@ const app = new NextServer({ const handle = app.getRequestHandler() -const getLogger = () => { - return pinoLogger({ - level: 'debug', // TODO: define by env - }) -} -let logger = getLogger() - app.prepare().then(() => { http .createServer((req, res) => { let startTime = Date.now() const parsedUrl = parse(req.url, true) handle(req, res, parsedUrl).then(() => { - logger.info({ + console.log({ url: req.url, method: req.method, headers: req.headers,