From 05a1939547d0fbe0e37cd0a57ffce6fbf035ee47 Mon Sep 17 00:00:00 2001 From: James Allen Date: Wed, 20 Sep 2017 09:42:08 +0200 Subject: [PATCH] Don't log out doc lines and ranges --- services/docstore/app/coffee/DocManager.coffee | 2 +- services/docstore/app/coffee/HttpController.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/docstore/app/coffee/DocManager.coffee b/services/docstore/app/coffee/DocManager.coffee index d9f0bd6747..34626214da 100644 --- a/services/docstore/app/coffee/DocManager.coffee +++ b/services/docstore/app/coffee/DocManager.coffee @@ -98,7 +98,7 @@ module.exports = DocManager = update.lines = lines if updateRanges update.ranges = ranges - logger.log { project_id, doc_id, oldDoc: doc, update: update }, "updating doc lines and ranges" + logger.log { project_id, doc_id, oldDoc: doc }, "updating doc lines and ranges" modified = true rev += 1 # rev will be incremented in mongo by MongoManager.upsertIntoDocCollection diff --git a/services/docstore/app/coffee/HttpController.coffee b/services/docstore/app/coffee/HttpController.coffee index 75298580b3..7ebcc4fd44 100644 --- a/services/docstore/app/coffee/HttpController.coffee +++ b/services/docstore/app/coffee/HttpController.coffee @@ -12,7 +12,7 @@ module.exports = HttpController = logger.log project_id: project_id, doc_id: doc_id, "getting doc" DocManager.getFullDoc project_id, doc_id, (error, doc) -> return next(error) if error? - logger.log doc: doc, "got doc" + logger.log {doc_id, project_id}, "got doc" if !doc? res.send 404 else if doc.deleted && !include_deleted