improve logging

This commit is contained in:
Hayden Faulds 2018-03-09 12:21:48 +00:00
parent 088ab6e7ba
commit fc6ef6ea7a
2 changed files with 2 additions and 2 deletions

View file

@ -174,7 +174,7 @@ module.exports = HttpController =
project_id = req.params.project_id
{docs, files} = req.body
logger.log {project_id}, "queuing project history resync via http"
logger.log {project_id, docs, files}, "queuing project history resync via http"
HistoryManager.resyncProjectHistory project_id, docs, files, (error) ->
return next(error) if error?
logger.log {project_id}, "queued project history resync via http"

View file

@ -331,7 +331,7 @@ module.exports = RedisManager =
rclient.rpush projectHistoryKeys.projectHistoryOps({project_id}), jsonUpdate, callback
queueResyncDocContent: (project_id, doc_id, lines, version, pathname, callback) ->
logger.log {project_id, doc_id, pathname}, "queue doc content resync"
logger.log {project_id, doc_id, lines, version, pathname}, "queue doc content resync"
update =
resyncDocContent:
content: lines.join("\n"),