diff --git a/lib/logger/logger.local.ts b/lib/logger/logger.local.ts index a0a951f..32d74de 100644 --- a/lib/logger/logger.local.ts +++ b/lib/logger/logger.local.ts @@ -28,7 +28,11 @@ export class LocalLogger { } error(message: string, options?: Options) { - this.logger.error(message, options); + if (options?.error) { + this.logger.error(options.error, message); + } else { + this.logger.error(message); + } } warn(message: string) {