diff --git a/packages/server/config.js b/packages/server/config.js index 18a98d1..653c1b8 100644 --- a/packages/server/config.js +++ b/packages/server/config.js @@ -64,7 +64,7 @@ const loggerConfig = { options: { colorize: true, levelFirst: true, - translateTime: 'SYS:standard' + ignore: 'pid,hostname,time' } }, level: process.env.DEBUG === 'true' ? 'debug' : 'info', @@ -74,7 +74,9 @@ const loggerConfig = { level: label } } - } + }, + timestamp: false, + hostname: false }, production: { level: 'info', @@ -84,7 +86,9 @@ const loggerConfig = { level: label } } - } + }, + timestamp: false, + hostname: false } }; diff --git a/packages/server/index.js b/packages/server/index.js index fed030c..8072730 100644 --- a/packages/server/index.js +++ b/packages/server/index.js @@ -18,7 +18,7 @@ const port = config.port; app.use(pinoHttp({ logger, autoLogging: { - ignore: (req) => req.url === '/health' + ignore: (req) => req.url === '/health' || req.url === '/' }, customLogLevel: function (res, err) { if (res.statusCode >= 400 && res.statusCode < 500) return 'warn'