mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
ヘッダーをログに表示するように
This commit is contained in:
parent
b491063331
commit
5c18ac6211
|
@ -6,5 +6,6 @@ export default function logging(req: Request, res: Response, next: NextFunction)
|
||||||
logger.info(`[${req.method}] ${req.originalUrl}`);
|
logger.info(`[${req.method}] ${req.originalUrl}`);
|
||||||
logger.debug(`Request params: ${JSON.stringify(req.params)}`);
|
logger.debug(`Request params: ${JSON.stringify(req.params)}`);
|
||||||
logger.debug(`Request body: ${JSON.stringify(req.body)}`);
|
logger.debug(`Request body: ${JSON.stringify(req.body)}`);
|
||||||
|
logger.debug(`Request headers: ${JSON.stringify(req.headers)}`);
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user