MNG-5625: Provide a terse information about the used thread builder

This commit is contained in:
Pavel Sorokin 2014-05-23 16:08:25 +02:00
parent 702acd2e8b
commit 7a3e1ad740
1 changed files with 6 additions and 2 deletions

View File

@ -111,8 +111,12 @@ public class LifecycleStarter
throw new BuilderNotFoundException( String.format( "The builder requested using id = %s cannot be found", builderId ) );
}
logger.info( "" );
logger.info( String.format( "Using the builder %s with a thread count of %s", builder.getClass().getName(), session.getRequest().getDegreeOfConcurrency() ) );
int degreeOfConcurrency = session.getRequest().getDegreeOfConcurrency();
if ( degreeOfConcurrency >= 2 )
{
logger.info( "" );
logger.info( String.format( "Using the builder %s with a thread count of %s", builder.getClass().getSimpleName(), degreeOfConcurrency ) );
}
builder.build( session, reactorContext, projectBuilds, taskSegments, reactorBuildStatus );
}