diff --git a/gamification-twitter-services/src/main/java/io/meeds/twitter/gamification/storage/TwitterConsumerStorage.java b/gamification-twitter-services/src/main/java/io/meeds/twitter/gamification/storage/TwitterConsumerStorage.java index cf5a4ada..06270798 100644 --- a/gamification-twitter-services/src/main/java/io/meeds/twitter/gamification/storage/TwitterConsumerStorage.java +++ b/gamification-twitter-services/src/main/java/io/meeds/twitter/gamification/storage/TwitterConsumerStorage.java @@ -90,7 +90,7 @@ public RemoteTwitterAccount retrieveTwitterAccount(String twitterUsername, Strin try { response = processGet(uri, bearerToken); } catch (TwitterConnectionException e) { - LOG.warn(TWITTER_RETRIEVE_ACCOUNT_ERROR, twitterUsername); + LOG.warn(TWITTER_RETRIEVE_ACCOUNT_ERROR, twitterUsername, e); return null; } if (response == null) { @@ -113,7 +113,7 @@ public RemoteTwitterAccount retrieveTwitterAccount(long twitterRemoteId, String try { response = processGet(uri, bearerToken); } catch (TwitterConnectionException e) { - LOG.warn(TWITTER_RETRIEVE_ACCOUNT_ERROR, twitterRemoteId); + LOG.warn(TWITTER_RETRIEVE_ACCOUNT_ERROR, twitterRemoteId, e); return null; } if (response == null) { @@ -143,7 +143,7 @@ public List getMentionEvents(TwitterAccount twitterAccount, long try { response = processGet(uri, bearerToken); } catch (TwitterConnectionException e) { - LOG.warn(TWITTER_RETRIEVE_ACCOUNT_MENTIONS_ERROR, twitterAccount.getRemoteId()); + LOG.warn(TWITTER_RETRIEVE_ACCOUNT_MENTIONS_ERROR, twitterAccount.getRemoteId(), e); return Collections.emptyList(); } if (response == null) { @@ -196,7 +196,7 @@ public Set retrieveTweetLikers(String tweetLink, String bearerToken) { try { response = processGet(uri, bearerToken); } catch (TwitterConnectionException e) { - LOG.warn(TWITTER_RETRIEVE_TWEET_LIKERS_ERROR, tweetId); + LOG.warn(TWITTER_RETRIEVE_TWEET_LIKERS_ERROR, tweetId, e); return Collections.emptySet(); } if (response == null) { @@ -224,7 +224,7 @@ public Set retrieveTweetRetweeters(String tweetLink, String bearerToken) try { response = processGet(uri, bearerToken); } catch (TwitterConnectionException e) { - LOG.warn(TWITTER_RETRIEVE_TWEET_RETWEETERS_ERROR, tweetId); + LOG.warn(TWITTER_RETRIEVE_TWEET_RETWEETERS_ERROR, tweetId, e); return Collections.emptySet(); } if (response == null) {