log stack trace included

This commit is contained in:
Ulf Gebhardt 2023-04-04 15:04:05 +02:00
parent e5319b7772
commit 80fa01f000
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -4,6 +4,6 @@ export default class LogError extends Error {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(msg: string, ...details: any[]) {
super(msg)
logger.error(msg, ...details)
logger.error(this.stack, ...details)
}
}