u
This commit is contained in:
@@ -55,6 +55,9 @@ export const loggerMiddleware = (req, res, next) => {
|
||||
if (req.headers['content-type']) {
|
||||
console.log(chalk.gray(' content-type:'), chalk.cyan(req.headers['content-type']));
|
||||
}
|
||||
if (req.headers.authorization) {
|
||||
console.log(chalk.gray(' authorization:'), chalk.cyan(req.headers.authorization));
|
||||
}
|
||||
logField('body', req.body ?? {}, { skipEmpty: true });
|
||||
logField('response', getBody());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user