fix: change to string instead (or else cannot be search)
This commit is contained in:
parent
ee1a1238eb
commit
0d26d2d7a8
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ async function logMiddleware(req: Request, res: Response, next: NextFunction) {
|
|||
host: req.hostname,
|
||||
method: req.method,
|
||||
endpoint: req.url,
|
||||
responseCode: res.statusCode === 304 ? 200 : res.statusCode,
|
||||
responseCode: String(res.statusCode === 304 ? 200 : res.statusCode),
|
||||
responseDescription: data?.code,
|
||||
input: (level === 4 && JSON.stringify(req.body, null, 2)) || undefined,
|
||||
output: (level === 4 && JSON.stringify(data, null, 2)) || undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue