Browse Source

Log expected and actual zipcode when computing confidence

pull/369/head
Julian Simioni 9 years ago
parent
commit
c6c547f6a2
  1. 2
      middleware/confidenceScore.js

2
middleware/confidenceScore.js

@ -101,7 +101,7 @@ function checkForDealBreakers(req, hit) {
} }
if (check.assigned(req.clean.parsed_text.postalcode) && req.clean.parsed_text.postalcode !== hit.address.zip) { if (check.assigned(req.clean.parsed_text.postalcode) && req.clean.parsed_text.postalcode !== hit.address.zip) {
logger.debug('[confidence][deal-breaker]: postalcode !== zip'); logger.debug('[confidence][deal-breaker]: postalcode !== zip (' + req.clean.parsed_text.postalcode + ' !== ' + hit.address.zip + ')');
return true; return true;
} }
} }

Loading…
Cancel
Save