Skip to content

Commit

Permalink
fix: fixed options output
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 14, 2022
1 parent 1842ef9 commit c594dd1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions index.js
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c594dd1

Please sign in to comment.