K
K
kabr1k2018-04-26 10:14:57
JavaScript
kabr1k, 2018-04-26 10:14:57

In node.js (express framework), how can I disable the output of HTTP server responses to the console?

The client-server is made on the longpolling method. As a result, the console constantly get / 200 OK. The gut is long stretching and stretching) Among it there are important messages of my code. Somewhere, somehow, this can be beautifully turned off without getting into the node and espress modules with your hands. Google did not help) Dear experts, we need help! Thank you in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Abcdefgk, 2018-04-26
@kabr1k

Yes, just delete the morgan logger from the main file.

K
kabr1k, 2018-04-26
@kabr1k

Brilliant! Thank you, friend, now everything is so concise in the console)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question