Merge pull request #835 from Hexastack/fix/log-error-stack

feat: display stack trace when logging errors
This commit is contained in:
Med Marrouchi 2025-03-20 22:06:33 +01:00 committed by GitHub
commit 6f02cf1443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,7 +52,7 @@ export class LoggerService extends ConsoleLogger {
private logArguments(type: LogLevel, message: string, args: any[]) {
super[type](message);
args.forEach((arg) => {
super[type](arg);
super[type](arg instanceof Error ? arg.stack : arg);
});
}
}