Skip to content

Commit eab0403

Browse files
fixed #141, fixed #142, fixed #143
1 parent 8417566 commit eab0403

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/woehlke/twitterwall/scheduled/mq/endoint/impl/UpdateUserProfilesImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,14 @@ public List<TwitterProfileMessage> splitMessage(Message<TaskMessage> message) {
7575
pageRequest = pageRequest.next();
7676
}
7777
long number = worklistProfileTwitterIds.size();
78+
loopId = 0;
7879
int millisToWaitBetweenTwoApiCalls = twitterProperties.getMillisToWaitBetweenTwoApiCalls();
7980
List<TwitterProfileMessage> userProfileList = new ArrayList<>();
8081
for(Long userProfileTwitterId:worklistProfileTwitterIds){
8182
String counter = " ( " + loopId + " from " + number + " ) ";
8283
log.debug(msg + counter);
8384
TwitterProfile userProfile = null;
85+
loopId++;
8486
try {
8587
log.debug(msg+"### twitterApiService.getUserProfileForTwitterId("+userProfileTwitterId+") "+counter);
8688
userProfile = twitterApiService.getUserProfileForTwitterId(userProfileTwitterId);

src/main/resources/logback.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<logger name="org.woehlke.twitterwall.scheduled.service.facade" level="INFO" />
1515
<logger name="org.woehlke.twitterwall.scheduled.service.persist" level="INFO" />
1616
<logger name="org.woehlke.twitterwall.scheduled.service.transform" level="INFO" />
17-
<logger name="org.woehlke.twitterwall.scheduled.mq" level="DEBUG" />
17+
<logger name="org.woehlke.twitterwall.scheduled.mq" level="INFO" />
1818
<logger name="org.woehlke.twitterwall" level="INFO" />
1919
<root level="WARN"></root>
2020
</configuration>

0 commit comments

Comments
 (0)