Skip to content

Commit

Permalink
fix: Add more information in traced Logs - MEED-7503 - Meeds-io/meeds…
Browse files Browse the repository at this point in the history
  • Loading branch information
boubaker committed Sep 24, 2024
1 parent a4071f4 commit 1072583
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -143,7 +143,7 @@ public List<TwitterTrigger> 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) {
Expand Down Expand Up @@ -196,7 +196,7 @@ public Set<String> 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) {
Expand Down Expand Up @@ -224,7 +224,7 @@ public Set<String> 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) {
Expand Down

0 comments on commit 1072583

Please sign in to comment.