Skip to content

Commit

Permalink
fix: only blacklist should be fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
niftylettuce committed Aug 8, 2020
1 parent 44ba292 commit 8d91840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,9 @@ class ForwardEmail {
['defer', 'slowdown'].includes(bounceInfo.action) ||
bounceInfo.category === 'blacklist'
) {
this.config.logger.fatal(err, {
this.config.logger[
bounceInfo.category === 'blacklist' ? 'fatal' : 'error'
](err, {
bounce_info: bounceInfo,
envelope
});
Expand Down

0 comments on commit 8d91840

Please sign in to comment.