Minor Update

This commit is contained in:
Giancarlo Panichi 2022-01-31 15:02:17 +01:00
parent e87bad0d87
commit ad872d422f
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ import java.util.concurrent.Executor;
@EnableScheduling
public class AsyncConfiguration implements AsyncConfigurer {
private final Logger log = LoggerFactory.getLogger(AsyncConfiguration.class);
private final Logger logger = LoggerFactory.getLogger(AsyncConfiguration.class);
private final TaskExecutionProperties taskExecutionProperties;
@ -31,7 +31,7 @@ public class AsyncConfiguration implements AsyncConfigurer {
@Override
@Bean(name = "taskExecutor")
public Executor getAsyncExecutor() {
log.debug("Creating Async Task Executor");
logger.debug("Creating Async Task Executor");
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
executor.setCorePoolSize(taskExecutionProperties.getPool().getCoreSize());
executor.setMaxPoolSize(taskExecutionProperties.getPool().getMaxSize());