Skip to content

Commit 0c14528

Browse files
authored
Merge pull request #269 from topcoder-platform/fix/deliverable
remove log
2 parents c8b7a6c + b901504 commit 0c14528

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929
import com.topcoder.onlinereview.component.search.filter.Filter;
3030
import com.topcoder.onlinereview.component.search.filter.InFilter;
3131

32-
import org.slf4j.Logger;
33-
import org.slf4j.LoggerFactory;
3432
import org.springframework.beans.factory.annotation.Autowired;
3533

3634
import java.util.ArrayList;
@@ -55,8 +53,6 @@
5553
* @version 2.0
5654
*/
5755
public class ListProjectsAction extends BaseProjectAction {
58-
59-
private static final Logger log = LoggerFactory.getLogger(ListProjectsAction.class.getName());
6056
/**
6157
* Represents the serial version id.
6258
*/
@@ -343,8 +339,6 @@ public String execute() throws BaseException {
343339
} catch (NumberFormatException nfe) {
344340
winnerId = null;
345341
}
346-
log.info("project:"+String.valueOf(projects[i].getId()));
347-
log.info(String.valueOf(winnerId));
348342
myDeliverables[i] = getMyDeliverablesForPhases(
349343
this, allMyDeliverables, phases[i], myResources[i], winnerId);
350344

@@ -560,7 +554,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
560554
if (deliverables == null || deliverables.length == 0 ||
561555
phases == null || phases.length == 0 ||
562556
resources == null || resources.length == 0) {
563-
log.info("no deliverables");
564557
return null; // No deliverables
565558
}
566559

@@ -574,30 +567,25 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
574567

575568
for (; j < phases.length; ++j) {
576569
if (deliverable.getPhase() == phases[j].getId()) {
577-
log.info(String.valueOf(deliverable.getPhase()));
578570
break;
579571
}
580572
}
581573

582574
// If this deliverable is not for any of the phases, continue the search
583575
if (j == phases.length) {
584-
log.info("phase not found");
585576
continue;
586577
}
587578

588579
for (j = 0; j < resources.length; ++j) {
589580
if (deliverable.getResource() == resources[j].getId()) {
590-
log.info(String.valueOf(deliverable.getResource()));
591581
break;
592582
}
593583
}
594584

595585
// If this deliverable is not for any of the resources, continue the search
596586
if (j == resources.length) {
597-
log.info("resource not found");
598587
continue;
599588
}
600-
log.info(String.valueOf(deliverable.getName()));
601589
// Get a resource this deliverable is for
602590
final Resource forResource = resources[j];
603591

@@ -608,7 +596,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
608596
Constants.ACTIVE_SUBMISSION_STATUS_NAME, false);
609597
if (submissions != null && submissions.length > 0 &&
610598
submissions[0].getUpload().getOwner() != deliverable.getResource()) {
611-
log.info("spec check");
612599
continue;
613600
}
614601
}
@@ -617,7 +604,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
617604
if (winnerUserId != null) {
618605
if (forResource.getResourceRole().getName().equalsIgnoreCase(Constants.SUBMITTER_ROLE_NAME) &&
619606
!winnerUserId.equals(resources[j].getUserId())) {
620-
log.info("winner check");
621607
continue;
622608
}
623609
}
@@ -626,18 +612,14 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
626612
String deliverableName = deliverable.getName();
627613
// Do not add the same deliverable twice
628614
if (deliverablesSet.contains(deliverableName)) {
629-
log.info("duplicate check");
630615
continue;
631616
}
632617

633618
// If this is not the first deliverable, add line-breaking tag
634619
if (buffer.length() != 0) {
635620
buffer.append("<br />");
636621
}
637-
log.info(deliverableName);
638622
buffer.append(textProvider.getText("Deliverable." + deliverableName.replaceAll(" ", "")));
639-
log.info("Deliverable." + deliverableName.replaceAll(" ", ""));
640-
log.info(buffer.toString());
641623
deliverablesSet.add(deliverableName);
642624
}
643625

0 commit comments

Comments
 (0)