Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

express not responding #121

Open
shyshkov opened this issue Sep 12, 2022 · 0 comments
Open

express not responding #121

shyshkov opened this issue Sep 12, 2022 · 0 comments

Comments

@shyshkov
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant