mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 03:51:41 +00:00
only log document ids, not document content
avoid filling the log with large documents
This commit is contained in:
parent
d3dff28bea
commit
70200a9cf1
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ module.exports = DocstoreHandler =
|
||||||
json: true
|
json: true
|
||||||
}, (error, res, docs) ->
|
}, (error, res, docs) ->
|
||||||
return callback(error) if error?
|
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
|
if 200 <= res.statusCode < 300
|
||||||
callback(null, docs)
|
callback(null, docs)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue