diff --git a/jvm-spring-web/src/main/java/com/example/demo/services/AcmeDonutsFeatureService.java b/jvm-spring-web/src/main/java/com/example/demo/services/AcmeDonutsFeatureService.java index e13b0e7..d9b0a66 100644 --- a/jvm-spring-web/src/main/java/com/example/demo/services/AcmeDonutsFeatureService.java +++ b/jvm-spring-web/src/main/java/com/example/demo/services/AcmeDonutsFeatureService.java @@ -35,7 +35,7 @@ public void onRefresh(String featuresJson) { } void handleError(FeatureFetchException e) { - e.printStackTrace(); + //e.printStackTrace(); switch (e.getErrorCode()) { case NO_RESPONSE_ERROR -> { @@ -46,9 +46,7 @@ void handleError(FeatureFetchException e) { // SSE is not applicable for this service but this was added here for completion. } - case CONFIGURATION_ERROR, UNKNOWN -> { - throw new RuntimeException(e); - } + case CONFIGURATION_ERROR, UNKNOWN -> throw new RuntimeException(e); } } }