Skip to content

Commit 6a9a514

Browse files
committed
add log
1 parent 2328455 commit 6a9a514

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/main/java/com/cronos/onlinereview/actions/project/ListProjectsAction.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import com.topcoder.onlinereview.component.search.filter.AndFilter;
2929
import com.topcoder.onlinereview.component.search.filter.Filter;
3030
import com.topcoder.onlinereview.component.search.filter.InFilter;
31+
32+
import org.slf4j.Logger;
33+
import org.slf4j.LoggerFactory;
3134
import org.springframework.beans.factory.annotation.Autowired;
3235

3336
import java.util.ArrayList;
@@ -53,6 +56,7 @@
5356
*/
5457
public class ListProjectsAction extends BaseProjectAction {
5558

59+
private static final Logger log = LoggerFactory.getLogger(ListProjectsAction.class.getName());
5660
/**
5761
* Represents the serial version id.
5862
*/
@@ -329,6 +333,14 @@ public String execute() throws BaseException {
329333
{
330334
Deliverable[] allMyDeliverables = getDeliverables(
331335
ActionsHelper.createDeliverableManager(), projects, phases, myResources);
336+
for (Deliverable d : allMyDeliverables) {
337+
log.info(String.valueOf(d.getProject()));
338+
log.info(String.valueOf(d.getPhase()));
339+
log.info(String.valueOf(d.getResource()));
340+
log.info(String.valueOf(d.getName()));
341+
log.info(String.valueOf(d.getCompletionDate()));
342+
log.info(String.valueOf(d.isComplete()));
343+
}
332344

333345
// Group the deliverables per projects in list
334346
for (int i = 0; i < projects.length; ++i) {
@@ -342,6 +354,8 @@ public String execute() throws BaseException {
342354

343355
myDeliverables[i] = getMyDeliverablesForPhases(
344356
this, allMyDeliverables, phases[i], myResources[i], winnerId);
357+
log.info(String.valueOf(i));
358+
log.info(myDeliverables[i]);
345359

346360
}
347361
}

0 commit comments

Comments
 (0)