Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
disable some logging #149
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed Feb 16, 2020
1 parent db7d27c commit 93d59a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
12 changes: 6 additions & 6 deletions controller/tweetSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,16 @@ function TweetSearch () {
searchQuery.max_id = maxId
}

console.log('--------------------------------------------------------')
console.log('--------------------------------------------------------')
console.log(searchQuery)
//~console.log('--------------------------------------------------------')
//~console.log('--------------------------------------------------------')
//~console.log(searchQuery)

twit.get('search/tweets', searchQuery, function(err, res, response) {
debug('search/tweets response', res)

console.log('--------------------------------------------------------')
//~console.log('--------------------------------------------------------')
//~console.log(err)
console.log(res.statuses.map(t => t.id_str).join(' '))
//~console.log(res.statuses.map(t => t.id_str).join(' '))
//~console.log(response.headers)
//~console.log(JSON.stringify(response, null, ' '))

Expand All @@ -64,7 +64,7 @@ function TweetSearch () {
}, 2000)
}
else
console.log('done', res)
console.log('search of pas tweets completed')
})

}
Expand Down
3 changes: 0 additions & 3 deletions controller/tweets.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ function Tweets (app) {

if (typeof tweet.retweeted_status !== 'undefined') {

if (tweet.retweeted_status.truncated)
console.log('truncated', JSON.stringify(tweet, null, ' '))

entities = tweet.retweeted_status.truncated && !tweet.retweeted_status.entities ? tweet.retweeted_status.extended_tweet.entities : tweet.retweeted_status.entities

entities.hashtags.forEach(function (h) {
Expand Down

0 comments on commit 93d59a5

Please sign in to comment.