mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added logging around load editor times
This commit is contained in:
parent
a786b623a8
commit
c12213b46b
2 changed files with 6 additions and 2 deletions
|
@ -182,7 +182,9 @@ module.exports = ProjectController =
|
||||||
if user_id == 'openUser'
|
if user_id == 'openUser'
|
||||||
cb null, defaultSettingsForAnonymousUser(user_id)
|
cb null, defaultSettingsForAnonymousUser(user_id)
|
||||||
else
|
else
|
||||||
User.findById user_id, cb
|
User.findById user_id, (err, user)->
|
||||||
|
logger.log project_id:project_id, user_id:user_id, "got user"
|
||||||
|
cb err, user
|
||||||
subscription: (cb)->
|
subscription: (cb)->
|
||||||
if user_id == 'openUser'
|
if user_id == 'openUser'
|
||||||
return cb()
|
return cb()
|
||||||
|
|
|
@ -10,7 +10,9 @@ module.exports =
|
||||||
else if user_or_id?
|
else if user_or_id?
|
||||||
user_id = user_or_id
|
user_id = user_or_id
|
||||||
logger.log user_id:user_id, "getting users subscription"
|
logger.log user_id:user_id, "getting users subscription"
|
||||||
Subscription.findOne admin_id:user_id, callback
|
Subscription.findOne admin_id:user_id, (err, subscription)->
|
||||||
|
logger.log user_id:user_id, "got users subscription"
|
||||||
|
callback(err, subscription)
|
||||||
|
|
||||||
getMemberSubscriptions: (user_id, callback) ->
|
getMemberSubscriptions: (user_id, callback) ->
|
||||||
logger.log user_id: user_id, "getting users group subscriptions"
|
logger.log user_id: user_id, "getting users group subscriptions"
|
||||||
|
|
Loading…
Reference in a new issue