Merge pull request #236 from sharelatex/sk-fix-doc-updater-logging

Change an erroneous `logger.error` to `logger.log`; Fixes #227
This commit is contained in:
James Allen 2018-01-03 11:30:46 +00:00 committed by GitHub
commit 0f1b0be231

View file

@ -224,7 +224,7 @@ module.exports = DocumentUpdaterHandler =
logger.error {error, url, project_id}, "error update project structure in doc updater"
callback(error)
else if res.statusCode >= 200 and res.statusCode < 300
logger.error {project_id}, "updated project structure in doc updater"
logger.log {project_id}, "updated project structure in doc updater"
callback(null)
else
logger.error {project_id, url}, "doc updater returned a non-success status code: #{res.statusCode}"