Skip to content

Commit

Permalink
enhance: remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hackjutsu committed Dec 16, 2019
1 parent 4c73cde commit 357fce1
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ function reSyncUserGists () {
}

function updateUserGists (userLoginId, token) {
logger.debug('!!! inside updateUserGists')
reduxStore.dispatch(updateGistSyncStatus('IN_PROGRESS'))
return getGitHubApi(GET_ALL_GISTS)(token, userLoginId)
.then((gistList) => {
Expand All @@ -274,7 +273,6 @@ function updateUserGists (userLoginId, token) {
let gistTags = {}
let fuseSearchIndex = []

logger.debug('!!! before interating gist list')
gistList.forEach((gist) => {
let langs = new Set()
let filenameRecords = ''
Expand Down Expand Up @@ -349,23 +347,15 @@ function updateUserGists (userLoginId, token) {
// refresh the redux state
let humanReadableSyncTime = HumanReadableTime(new Date())
setSyncTime(humanReadableSyncTime)
logger.debug('!!! before updateGistStoreAfterSync')
updateGistStoreAfterSync(gists)
logger.debug('!!! after updateGistStoreAfterSync')
updateGistTagsAfterSync(gistTags)
updateActiveGistTagAfterSync(gistTags, activeTagCandidate)
logger.debug('!!! before updateActiveGistAfterSync')
updateActiveGistAfterSync(gists, gistTags, activeTagCandidate)
logger.debug('!!! after updateActiveGistAfterSync')

// clean up the snapshot for the previous state
logger.debug('!!! before clearSyncSnapshot')
clearSyncSnapshot()
logger.debug('!!! after clearSyncSnapshot')

logger.debug('!!! before Notifier')
Notifier('Sync succeeds', humanReadableSyncTime)
logger.debug('!!! after Notifier')

reduxStore.dispatch(updateGistSyncStatus('DONE'))
})
Expand Down Expand Up @@ -409,7 +399,6 @@ function initUserSession (token) {
reduxStore.dispatch(updateUserSession({ activeStatus: 'ACTIVE', profile: newProfile }))
})
.catch((err) => {
logger.debug('!!!!!!')
logger.debug('-----> Failure with ' + JSON.stringify(err))
logger.error('The request has failed: \n' + JSON.stringify(err))

Expand Down

0 comments on commit 357fce1

Please sign in to comment.