mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:12:27 +00:00
added some logging around dropbox update
This commit is contained in:
parent
a62a8db0e0
commit
f906d63067
2 changed files with 5 additions and 1 deletions
|
@ -231,6 +231,7 @@ module.exports = EditorController =
|
|||
callback()
|
||||
|
||||
getLastTimePollHappned: (callback)->
|
||||
logger.log "getting last time a poll happened in dropbox"
|
||||
tpdsPollingBackgroundTasks.getLastTimePollHappned callback
|
||||
|
||||
updateProjectDescription: (project_id, description, callback = ->)->
|
||||
|
|
|
@ -32,4 +32,7 @@ self = module.exports =
|
|||
rclient.set LAST_TIME_POLL_HAPPEND_KEY, new Date().getTime(), callback
|
||||
|
||||
getLastTimePollHappned: (callback = (err, lastTimePollHappened)->)->
|
||||
rclient.get LAST_TIME_POLL_HAPPEND_KEY, callback
|
||||
rclient.get LAST_TIME_POLL_HAPPEND_KEY, (err, time)->
|
||||
logger.log lastTimePollHappened:time, "got last time a poll happend to dropbox"
|
||||
callback(err, time)
|
||||
|
||||
|
|
Loading…
Reference in a new issue