voonhous commented on code in PR #19188:
URL: https://github.com/apache/hudi/pull/19188#discussion_r3524389079


##########
hudi-io/src/main/java/org/apache/hudi/common/util/ReflectionUtils.java:
##########
@@ -136,15 +136,15 @@ public static Stream<String> 
getTopLevelClassesInClasspath(Class<?> clazz) {
     try {
       resources = classLoader.getResources(path);
     } catch (IOException e) {
-      log.error("Unable to fetch Resources in package " + e.getMessage());
+      log.error("Unable to fetch Resources in package {}", e.getMessage());
     }
     List<File> directories = new ArrayList<>();
     while (Objects.requireNonNull(resources).hasMoreElements()) {
       URL resource = resources.nextElement();
       try {
         directories.add(new File(resource.toURI()));
       } catch (URISyntaxException e) {
-        log.error("Unable to get " + e.getMessage());
+        log.error("Unable to get {}", e.getMessage());

Review Comment:
   Done in the same commit - `log.error("Unable to get URI for {}", resource, 
e)`. Passes `e` for the stack trace and names the `resource` URL that failed 
`toURI()` in the placeholder.
   



-- 
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]

Reply via email to