Skip to content

Commit

Permalink
Send more logs to debug level
Browse files Browse the repository at this point in the history
  • Loading branch information
shaftoe committed Oct 4, 2024
1 parent f77a9c1 commit 5a5bd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spam-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
if (`${res.data}` === 'false') {
log.debug('Akismet marked comment as HAM')
return comment
} else if (`${res.data}` === 'true') throw new SpamError('Akismet marked comment as SPAM')
} else if (`${res.data}` === 'true') log.debug('Akismet marked comment as SPAM')
else throw new SpamError('Akismet error: ' + res.data)
},

Expand Down

0 comments on commit 5a5bd6d

Please sign in to comment.