>PROBLEM
The server throws the following server's message:
morgan deprecated default format: use combined format
>SOLUTIONS
>>POSSIBILITY #1 ----------------------------------
BEFORE:
app.use(logger);
AFTER:
app.use(logger('combined'));
@FROM:
stackoverflow.com/questions/36397812/morgan-deprecated-expressjs/36398066
>>POSSIBILITY #2 ----------------------------------
BEFORE:
app.use(logger(process.env.AMBIENTE));
...
require('dotenv').config();
AFTER:
require('dotenv').config();
..
app.use(logger(process.env.AMBIENTE));
No comments:
Post a Comment