express-pino-logger icon indicating copy to clipboard operation
express-pino-logger copied to clipboard

express not responding

Open shyshkov opened this issue 1 year ago • 0 comments

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)`

shyshkov avatar Sep 12 '22 12:09 shyshkov