mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 11:06:04 +00:00
additional logging
This commit is contained in:
parent
792e8bbd7e
commit
af9cc28419
2 changed files with 5 additions and 1 deletions
services/web/app/coffee/Features
|
@ -206,6 +206,7 @@ module.exports = DocumentUpdaterHandler =
|
|||
callback new Error("doc updater returned a non-success status code: #{res.statusCode}")
|
||||
|
||||
resyncProjectHistory: (project_id, docs, files, callback) ->
|
||||
logger.info {project_id}, "resyncing project in doc updater"
|
||||
request.post
|
||||
url: "#{settings.apis.documentupdater.url}/project/#{project_id}/history/resync"
|
||||
json: { docs, files }
|
||||
|
@ -216,6 +217,9 @@ module.exports = DocumentUpdaterHandler =
|
|||
else if res.statusCode >= 200 and res.statusCode < 300
|
||||
logger.log {project_id}, "resynced project in doc updater"
|
||||
callback()
|
||||
else
|
||||
logger.error {project_id, doc_id}, "doc updater returned a non-success status code: #{res.statusCode}"
|
||||
callback new Error("doc updater returned a non-success status code: #{res.statusCode}")
|
||||
|
||||
updateProjectStructure : (project_id, userId, changes, callback = (error) ->)->
|
||||
return callback() if !settings.apis.project_history?.sendProjectStructureOps
|
||||
|
|
|
@ -52,7 +52,7 @@ module.exports = ProjectEntityHandler = self =
|
|||
callback null, files
|
||||
|
||||
getAllEntitiesFromProject: (project, callback) ->
|
||||
logger.log project:project, "getting all files for project"
|
||||
logger.log project:project, "getting all entities for project"
|
||||
self._getAllFoldersFromProject project, (err, folders = {}) ->
|
||||
return callback(err) if err?
|
||||
docs = []
|
||||
|
|
Loading…
Reference in a new issue