diff --git a/mcts/src/main/java/org/motechproject/nms/mcts/service/impl/MctsWsImportServiceImpl.java b/mcts/src/main/java/org/motechproject/nms/mcts/service/impl/MctsWsImportServiceImpl.java index 9a1737f0c..52f3b0c58 100644 --- a/mcts/src/main/java/org/motechproject/nms/mcts/service/impl/MctsWsImportServiceImpl.java +++ b/mcts/src/main/java/org/motechproject/nms/mcts/service/impl/MctsWsImportServiceImpl.java @@ -250,7 +250,7 @@ public MctsImportAudit saveImportedMothersData(MothersDataSet mothersDataSet, St MotherImportRejection motherImportRejection; for (Map record : rejectedMotherRecords) { action = (String) record.get(KilkariConstants.ACTION); - LOGGER.error("Existing Mother Record with same MSISDN in the data set"); + LOGGER.debug("Existing Mother Record with same MSISDN in the data set"); motherImportRejection = motherRejectionMcts(convertMapToMother(record), false, RejectionReasons.DUPLICATE_MOBILE_NUMBER_IN_DATASET.toString(), action); rejectedMothers.put(motherImportRejection.getIdNo(), motherImportRejection); rejectionStatus.put(motherImportRejection.getIdNo(), motherImportRejection.getAccepted()); @@ -593,7 +593,7 @@ private MctsImportAudit saveImportedAnmAshaData(AnmAshaDataSet anmAshaDataSet, S for (AnmAshaRecord record : rejectedAshaRecords) { record.setStateId(stateCode); action = this.flwActionFinder(record); - LOGGER.error("Existing Asha Record with same MSISDN in the data set"); + LOGGER.debug("Existing Asha Record with same MSISDN in the data set"); flwRejectionService.createUpdate(flwRejectionMcts(record, false, RejectionReasons.DUPLICATE_MOBILE_NUMBER_IN_DATASET.toString(), action)); rejected++; } diff --git a/rch/src/main/java/org/motechproject/nms/rch/service/impl/RchWebServiceFacadeImpl.java b/rch/src/main/java/org/motechproject/nms/rch/service/impl/RchWebServiceFacadeImpl.java index 61ae1c83f..d36f027dc 100644 --- a/rch/src/main/java/org/motechproject/nms/rch/service/impl/RchWebServiceFacadeImpl.java +++ b/rch/src/main/java/org/motechproject/nms/rch/service/impl/RchWebServiceFacadeImpl.java @@ -615,7 +615,7 @@ private RchImportAudit saveImportedMothersData(RchMothersDataSet mothersDataSet, for (Map record : rejectedRchMothers) { action = (String) record.get(KilkariConstants.ACTION); - LOGGER.error("Existing Mother Record with same MSISDN in the data set"); + LOGGER.debug("Existing Mother Record with same MSISDN in the data set"); motherImportRejection = motherRejectionRch(convertMapToRchMother(record), false, RejectionReasons.DUPLICATE_MOBILE_NUMBER_IN_DATASET.toString(), action); rejectedMothers.put(motherImportRejection.getRegistrationNo(), motherImportRejection); rejectionStatus.put(motherImportRejection.getRegistrationNo(), motherImportRejection.getAccepted()); @@ -847,7 +847,7 @@ private RchImportAudit saveImportedAshaData(RchAnmAshaDataSet anmAshaDataSet, St String action = ""; for (RchAnmAshaRecord record : rejectedRchAshas) { action = this.rchFlwActionFinder(record); - LOGGER.error("Existing Asha Record with same MSISDN in the data set"); + LOGGER.debug("Existing Asha Record with same MSISDN in the data set"); flwRejectionService.createUpdate(flwRejectionRch(record, false, RejectionReasons.DUPLICATE_MOBILE_NUMBER_IN_DATASET.toString(), action)); } List acceptedRchAshas = rchAshaRecordsSet.get(1); @@ -884,7 +884,7 @@ private RchImportAudit saveImportedAshaData(RchAnmAshaDataSet anmAshaDataSet, St flwRejectionService.createUpdate(flwRejectionRch(record, false, RejectionReasons.INVALID_LOCATION.toString(), action)); rejected++; } catch (FlwImportException e) { - LOGGER.error("Existing FLW with same MSISDN but different RCH ID", e); + LOGGER.debug("Existing FLW with same MSISDN but different RCH ID", e); flwRejectionService.createUpdate(flwRejectionRch(record, false, RejectionReasons.MOBILE_NUMBER_ALREADY_IN_USE.toString(), action)); rejected++; } catch (FlwExistingRecordException e) {