From c594dd1f1190edbb5414d50e4dedbc9a39c34c71 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Tue, 14 Jun 2022 02:10:29 -0500 Subject: [PATCH] fix: fixed options output --- index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index daa05f64..7efddee2 100644 --- a/index.js +++ b/index.js @@ -2633,7 +2633,10 @@ class ForwardEmail { if (info.rejectedErrors && info.rejectedErrors.length > 0) { for (const err of info.rejectedErrors) { - this.config.logger.error(err, { options, session }); + this.config.logger.error(err, { + options: _.omit(options, 'raw'), + session + }); // here we do some magic so that we push an error message // that has the end-recipient's email masked with the @@ -2666,7 +2669,10 @@ class ForwardEmail { } } } catch (err) { - this.config.logger.error(err, { options, session }); + this.config.logger.error(err, { + omit: _.omit(options, 'raw'), + session + }); // here we do some magic so that we push an error message // that has the end-recipient's email masked with the