mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add logging for Labels http actions
This commit is contained in:
parent
9607174b64
commit
5a6415d3f8
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ module.exports = LabelsController =
|
||||||
|
|
||||||
getAllLabels: (req, res, next) ->
|
getAllLabels: (req, res, next) ->
|
||||||
project_id = req.params.project_id
|
project_id = req.params.project_id
|
||||||
|
logger.log {project_id}, "getting all labels for project"
|
||||||
LabelsHandler.getAllLabelsForProject project_id, (err, projectLabels) ->
|
LabelsHandler.getAllLabelsForProject project_id, (err, projectLabels) ->
|
||||||
if err?
|
if err?
|
||||||
logger.err {project_id, err}, "[LabelsController] error getting all labels from project"
|
logger.err {project_id, err}, "[LabelsController] error getting all labels from project"
|
||||||
|
@ -16,6 +17,7 @@ module.exports = LabelsController =
|
||||||
broadcastLabelsForDoc: (req, res, next) ->
|
broadcastLabelsForDoc: (req, res, next) ->
|
||||||
project_id = req.params.project_id
|
project_id = req.params.project_id
|
||||||
doc_id = req.params.doc_id
|
doc_id = req.params.doc_id
|
||||||
|
logger.log {project_id, doc_id}, "getting labels for doc"
|
||||||
LabelsHandler.getLabelsForDoc project_id, doc_id, (err, docLabels) ->
|
LabelsHandler.getLabelsForDoc project_id, doc_id, (err, docLabels) ->
|
||||||
if err?
|
if err?
|
||||||
logger.err {project_id, doc_id, err}, "[LabelsController] error getting labels from doc"
|
logger.err {project_id, doc_id, err}, "[LabelsController] error getting labels from doc"
|
||||||
|
|
Loading…
Reference in a new issue