express-pino-logger
express-pino-logger copied to clipboard
express not responding
Request to http://localhost:3000/ freezes and does not return any response.
Node v16.16.0
https://github.com/pinojs/express-pino-logger/#example
`'use strict'
var app = require('express')() var pino = require('express-pino-logger')
app.use(pino)
app.get('/', function (req, res) {
// each request has its own id
// so you can track the log of each request
// by using req.log
// the ids are cycled every 2^31 - 2
req.log.info('something else')
res.send('hello world')
})
app.listen(3000)`