added logging around docstore setting

This commit is contained in:
Henry Oswald 2014-12-11 16:22:00 +00:00
parent f005c5e8dc
commit 5c7d77a853
2 changed files with 2 additions and 0 deletions

View file

@ -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}")

View file

@ -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()