mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
only log document ids, not document content
avoid filling the log with large documents
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user