Skip to content

Commit

Permalink
Merge pull request #732 from motech-implementations/upkeep_subscriptions
Browse files Browse the repository at this point in the history
changing error statement to debug
  • Loading branch information
gudipatiharitha authored Jul 23, 2018
2 parents 6f00815 + 5bc155e commit 25680c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public MctsImportAudit saveImportedMothersData(MothersDataSet mothersDataSet, St
MotherImportRejection motherImportRejection;
for (Map<String, Object> 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());
Expand Down Expand Up @@ -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++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ private RchImportAudit saveImportedMothersData(RchMothersDataSet mothersDataSet,

for (Map<String, Object> 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());
Expand Down Expand Up @@ -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<RchAnmAshaRecord> acceptedRchAshas = rchAshaRecordsSet.get(1);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 25680c4

Please sign in to comment.