Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
fix(push): add extra logs
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff committed May 26, 2017
1 parent 8920a01 commit 5362c64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ module.exports = function (log, db, config) {
dummyCurve.computeSecret(base64url.toBuffer(publicKey))
return true
} catch (err) {
log.info({
op: 'push.isValidPublicKey',
name: 'Bad public key detected'
})
// However! The above call might have left some junk
// sitting around on the openssl error stack.
// Clear it by deliberately triggering a signing error
Expand Down

0 comments on commit 5362c64

Please sign in to comment.