Commit 7e95b311 authored by Yannick Kirschhoffer's avatar Yannick Kirschhoffer

Update logs indentation.

parent d0e23597
Pipeline #42259042 passed with stages
in 3 minutes and 8 seconds
......@@ -31,15 +31,15 @@ public class TwitterService {
twitterDAO.open(accountProperties);
Optional<Date> lastRT = twitterDAO.getLastRetweetTime();
log.info("Last retweet by {} is at {}", accountName, lastRT);
log.info(" Last retweet by {} is at {}", accountName, lastRT);
for (String handle : retweetProperties.getUsers()) {
log.info("Considering re-tweeting {}", handle);
log.info(" Considering re-tweeting {}", handle);
Optional<TweetEntity> optionalTweet = twitterDAO.getMostRecentMessage(handle);
if (!optionalTweet.isPresent()) {
log.info("No tweet found");
log.info(" No tweet found");
continue;
}
......@@ -48,16 +48,16 @@ public class TwitterService {
List<String> keywords = retweetProperties.getKeywords();
if (!filterAccepts(tweet, keywords)) {
log.info("Tweet does not match keywords {}", keywords);
log.info(" Tweet does not match keywords {}", keywords);
continue;
}
if (!acceptableDates(lastRT, tweet)) {
log.info("Tweet is older than my last message.");
log.info(" Tweet is older than my last message.");
continue;
}
log.info("Re-tweeting tweet from {} created at {}", handle, tweet.getCreatedAt());
log.info(" Re-tweeting tweet from {} created at {}", handle, tweet.getCreatedAt());
twitterDAO.reTeweet(tweet.getId());
}
} finally {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment