added logging around load editor times

This commit is contained in:
Henry Oswald 2015-07-22 10:38:28 +01:00
parent a786b623a8
commit c12213b46b
2 changed files with 6 additions and 2 deletions

View file

@ -182,7 +182,9 @@ module.exports = ProjectController =
if user_id == 'openUser'
cb null, defaultSettingsForAnonymousUser(user_id)
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)->
if user_id == 'openUser'
return cb()

View file

@ -10,7 +10,9 @@ module.exports =
else if user_or_id?
user_id = user_or_id
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) ->
logger.log user_id: user_id, "getting users group subscriptions"