mirror of
https://github.com/hexastack/hexabot
synced 2025-04-05 05:29:33 +00:00
Merge pull request #835 from Hexastack/fix/log-error-stack
feat: display stack trace when logging errors
This commit is contained in:
commit
6f02cf1443
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user