Merge pull request #70 from sharelatex/as-add-onboarding-logging

Adds some onboarding logging to investigate potential bug
This commit is contained in:
Alasdair Smith 2017-10-20 10:47:15 +01:00 committed by GitHub
commit 5b1836c639

View file

@ -229,6 +229,7 @@ module.exports = ProjectController =
else if event? else if event?
return cb(null, false) return cb(null, false)
else else
logger.log { user_id, event }, "track changes onboarding not shown yet to this user"
return cb(null, true) return cb(null, true)
showPerUserTCNotice: (cb) -> showPerUserTCNotice: (cb) ->
cb = underscore.once(cb) cb = underscore.once(cb)
@ -247,6 +248,7 @@ module.exports = ProjectController =
else if event? else if event?
return cb(null, false) return cb(null, false)
else else
logger.log { user_id, event }, "per user track changes notice not shown yet to this user"
return cb(null, true) return cb(null, true)
showAutoCompileOnboarding: (cb) -> showAutoCompileOnboarding: (cb) ->
cb = underscore.once(cb) cb = underscore.once(cb)
@ -273,6 +275,7 @@ module.exports = ProjectController =
else if event? else if event?
return cb(null, false) return cb(null, false)
else else
logger.log { user_id, event }, "autocompile onboarding not shown yet to this user"
return cb(null, true) return cb(null, true)
}, (err, results)-> }, (err, results)->
if err? if err?