only log document ids, not document content

avoid filling the log with large documents
This commit is contained in:
Brian Gough 2015-09-16 15:31:43 +01:00
parent d3dff28bea
commit 70200a9cf1

View file

@ -12,6 +12,7 @@ module.exports = DocstoreHandler =
json: true
}, (error, res, docs) ->
return callback(error) if error?
logger.log {error, res, docs: if docs?.length then docs.map (d) -> d._id else []}, "docstore response"
if 200 <= res.statusCode < 300
callback(null, docs)
else