Skip to content

Commit

Permalink
Cleanup debug log handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rhowe authored and rfscholte committed Jun 3, 2019
1 parent 331bb95 commit 24141bd
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -859,11 +859,14 @@ else if ( CompilerConfiguration.CompilerReuseStrategy.ReuseSame.getStrategy().eq
{
// MCOMPILER-366: if sources contain the module-descriptor it must be used to define the modulepath
sources = getCompileSources( compiler, compilerConfiguration );

getLog().debug( "#sources: " + sources.size() );
for ( File file : sources )

if ( getLog().isDebugEnabled() )
{
getLog().debug( file.getPath() );
getLog().debug( "#sources: " + sources.size() );
for ( File file : sources )
{
getLog().debug( file.getPath() );
}
}

preparePaths( sources );
Expand Down Expand Up @@ -960,7 +963,7 @@ else if ( CompilerConfiguration.CompilerReuseStrategy.ReuseSame.getStrategy().eq
}

String[] cl = compiler.createCommandLine( compilerConfiguration );
if ( getLog().isDebugEnabled() && cl != null && cl.length > 0 )
if ( cl != null && cl.length > 0 )
{
StringBuilder sb = new StringBuilder();
sb.append( cl[0] );
Expand Down

0 comments on commit 24141bd

Please sign in to comment.