Skip to content

Commit

Permalink
HCMPRE-203: updated changes as per code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishq-egov committed Aug 23, 2024
1 parent 51a6ff8 commit 69387ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void consumeUserAction(ConsumerRecord<String, Object> payload,
);
userActionLocationCaptureAggregationService.processUserActionLocationCapture(payloadList);
} catch (Exception exception) {
log.error("error in project user action bulk consumer", exception);
log.error("Error in project user action bulk consumer", exception);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.egov.common.models.project.useraction.UserAction;
import org.egov.tracer.model.CustomException;
import org.egov.transformer.aggregator.config.ServiceConfiguration;
import org.egov.transformer.aggregator.models.ElasticsearchHit;
import org.egov.transformer.aggregator.models.UserActionCompositeKey;
Expand Down Expand Up @@ -202,7 +203,7 @@ public JsonNode buildGeoJson(List<UserAction> userActionList) {
return objectMapper.readTree(jsonString);
} catch (Exception e) {
log.error("Failed to build GeoJSON: ", e);
return null; // Handle exception properly in production code
throw new CustomException("Error building GeoJSON from user actions", e.getMessage());
}
}

Expand Down

0 comments on commit 69387ea

Please sign in to comment.