mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 22:49:26 +08:00
chore: log response size
This commit is contained in:
parent
0e46d78c3c
commit
2f9436d539
@ -71,6 +71,7 @@ export const requestLogger = (appName: string, requestLogger: Logger, options?:
|
||||
cost,
|
||||
app: appName,
|
||||
reqId,
|
||||
bodySize: ctx.response.length,
|
||||
};
|
||||
if (Math.floor(status / 100) == 5) {
|
||||
requestLogger.error({ ...info, res: ctx.body?.['errors'] || ctx.body });
|
||||
|
Loading…
x
Reference in New Issue
Block a user