mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
Merge pull request #27 from sharelatex/ja-quieten-logs
Don't log out doc lines and ranges
This commit is contained in:
commit
122a0628d9
2 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ module.exports = DocManager =
|
||||||
update.lines = lines
|
update.lines = lines
|
||||||
if updateRanges
|
if updateRanges
|
||||||
update.ranges = ranges
|
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
|
modified = true
|
||||||
rev += 1 # rev will be incremented in mongo by MongoManager.upsertIntoDocCollection
|
rev += 1 # rev will be incremented in mongo by MongoManager.upsertIntoDocCollection
|
||||||
|
|
|
@ -12,7 +12,7 @@ module.exports = HttpController =
|
||||||
logger.log project_id: project_id, doc_id: doc_id, "getting doc"
|
logger.log project_id: project_id, doc_id: doc_id, "getting doc"
|
||||||
DocManager.getFullDoc project_id, doc_id, (error, doc) ->
|
DocManager.getFullDoc project_id, doc_id, (error, doc) ->
|
||||||
return next(error) if error?
|
return next(error) if error?
|
||||||
logger.log doc: doc, "got doc"
|
logger.log {doc_id, project_id}, "got doc"
|
||||||
if !doc?
|
if !doc?
|
||||||
res.send 404
|
res.send 404
|
||||||
else if doc.deleted && !include_deleted
|
else if doc.deleted && !include_deleted
|
||||||
|
|
Loading…
Reference in a new issue