diff --git a/packages/core/logger/src/system-logger.ts b/packages/core/logger/src/system-logger.ts index bc7fa2887..76ed33d2f 100644 --- a/packages/core/logger/src/system-logger.ts +++ b/packages/core/logger/src/system-logger.ts @@ -49,11 +49,12 @@ class SystemLoggerTransport extends Transport { } log(info: any, callback: any) { - const { level, message, reqId, app, [SPLAT]: args } = info; + const { level, message, reqId, app, stack, [SPLAT]: args } = info; const logger = level === 'error' && this.errorLogger ? this.errorLogger : this.logger; const { module, submodule, method, ...meta } = args?.[0] || {}; logger.log({ level, + stack, message, meta, module: module || info['module'] || '',