Browse Source

log libpostal and placeholder responses to debug

pull/946/head
Lily He 7 years ago
parent
commit
ad1d88ac62
  1. 1
      controller/libpostal.js
  2. 1
      controller/placeholder.js

1
controller/libpostal.js

@ -21,6 +21,7 @@ function setup(should_execute) {
}
req.clean.parsed_text = parsed_text;
debugLog.push(req, {parsed_text: req.clean.parsed_text});
}
debugLog.stopTimer(req, initialTime);
return next();

1
controller/placeholder.js

@ -267,6 +267,7 @@ function setup(placeholderService, do_geometric_filters_apply, should_execute) {
logger.info(messageParts.join(' '));
debugLog.push(req, messageParts[1].slice(1,-1));
debugLog.push(req, res.data);
}
debugLog.stopTimer(req, initialTime);

Loading…
Cancel
Save