rfscholte commented on a change in pull request #104: URL: https://github.com/apache/maven-javadoc-plugin/pull/104#discussion_r735133627
########## File path: src/main/java/org/apache/maven/plugins/javadoc/AbstractJavadocMojo.java ########## @@ -5543,12 +5543,16 @@ private ResolvePathResult getResolvePathResult( File artifactFile ) } catch ( IOException | RuntimeException /* e.g java.lang.module.FindException */ e ) { - Throwable cause = e; - while ( cause.getCause() != null ) + if ( getLog().isDebugEnabled() ) { - cause = cause.getCause(); + Throwable cause = e; + while ( cause.getCause() != null ) + { + cause = cause.getCause(); + } + + getLog().debug( "resolve path for: " + artifactFile + " cause error: " + e ); Review comment: The purpose it to log the message of the root cause, so it should be `getLog().debug( "resolve path for: " + artifactFile + " cause error: " + cause );` -- 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: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org