gitgabrio commented on code in PR #3868:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3868#discussion_r2079629442


##########
drools/kogito-pmml/src/main/java/org/kie/kogito/pmml/AbstractPMMLRestResource.java:
##########
@@ -38,6 +39,7 @@ protected PMML4Result descriptive(Application application, 
String fileName, Stri
 
     public static String getJsonErrorMessage(Exception e) {
         String errorMessage = String.format("%1$s: %2$s", 
e.getClass().getName(), e.getMessage() != null ? e.getMessage() : "");
-        return String.format("{\"exception\" : \"%s\"}", errorMessage);
+        Logger.getLogger(errorMessage);
+        return "{\"exception\" : \"Internal server error occurred while 
processing the prediction.\"}";

Review Comment:
   HI @bncriju - not sure of the reason of this modification, but please revert 
it: it completely change the logic behind



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to