Просмотр исходного кода

only log document ids, not document content

avoid filling the log with large documents
Brian Gough 11 лет назад
Родитель
Сommit
70200a9cf1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/track-changes/app/coffee/DocstoreHandler.coffee

+ 1 - 0
services/track-changes/app/coffee/DocstoreHandler.coffee

@@ -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