mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Improve logging for debugging
This commit is contained in:
parent
d40cf6568d
commit
d2183738c5
1 changed files with 2 additions and 1 deletions
|
@ -11,11 +11,12 @@ Crypto = require 'crypto'
|
|||
module.exports = CollaboratorsInviteHandler =
|
||||
|
||||
getAllInvites: (projectId, callback=(err, invites)->) ->
|
||||
logger.log {projectId}, "fetching invites from mongo"
|
||||
logger.log {projectId}, "fetching invites for project"
|
||||
ProjectInvite.find {projectId: projectId}, (err, invites) ->
|
||||
if err?
|
||||
logger.err {err, projectId}, "error getting invites from mongo"
|
||||
return callback(err)
|
||||
logger.log {projectId, count: invites.length}, "found invites for project"
|
||||
callback(null, invites)
|
||||
|
||||
getInviteCount: (projectId, callback=(err, count)->) ->
|
||||
|
|
Loading…
Reference in a new issue