mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added logging around docstore setting
This commit is contained in:
parent
f005c5e8dc
commit
5c7d77a853
2 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,7 @@ module.exports = DocstoreManager =
|
||||||
}, (error, res, result) ->
|
}, (error, res, result) ->
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
if 200 <= res.statusCode < 300
|
if 200 <= res.statusCode < 300
|
||||||
|
logger.log project_id: project_id, doc_id: doc_id, "update doc in docstore url finished"
|
||||||
callback(null, result.modified, result.rev)
|
callback(null, result.modified, result.rev)
|
||||||
else
|
else
|
||||||
error = new Error("docstore api responded with non-success code: #{res.statusCode}")
|
error = new Error("docstore api responded with non-success code: #{res.statusCode}")
|
||||||
|
|
|
@ -26,6 +26,7 @@ module.exports =
|
||||||
if error?
|
if error?
|
||||||
logger.err err:error, doc_id:doc_id, project_id:project_id, "error finding element for getDocument"
|
logger.err err:error, doc_id:doc_id, project_id:project_id, "error finding element for getDocument"
|
||||||
return next(error)
|
return next(error)
|
||||||
|
logger.log doc_id:doc_id, project_id:project_id, "finished receiving set document request from api (docupdater)"
|
||||||
res.send 200
|
res.send 200
|
||||||
req.session.destroy()
|
req.session.destroy()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue