Improve log message when searching for default executor for async processing
Closes gh-27983
This commit is contained in:
		
							parent
							
								
									dbeae27d3c
								
							
						
					
					
						commit
						7072aab53b
					
				| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright 2002-2018 the original author or authors.
 | 
					 * Copyright 2002-2022 the original author or authors.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
					 * Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 * you may not use this file except in compliance with the License.
 | 
					 * you may not use this file except in compliance with the License.
 | 
				
			||||||
| 
						 | 
					@ -233,7 +233,8 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
 | 
				
			||||||
				return beanFactory.getBean(TaskExecutor.class);
 | 
									return beanFactory.getBean(TaskExecutor.class);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			catch (NoUniqueBeanDefinitionException ex) {
 | 
								catch (NoUniqueBeanDefinitionException ex) {
 | 
				
			||||||
				logger.debug("Could not find unique TaskExecutor bean", ex);
 | 
									logger.debug("Could not find unique TaskExecutor bean. " +
 | 
				
			||||||
 | 
											"Continuing search for an Executor bean named 'taskExecutor'", ex);
 | 
				
			||||||
				try {
 | 
									try {
 | 
				
			||||||
					return beanFactory.getBean(DEFAULT_TASK_EXECUTOR_BEAN_NAME, Executor.class);
 | 
										return beanFactory.getBean(DEFAULT_TASK_EXECUTOR_BEAN_NAME, Executor.class);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					@ -246,7 +247,8 @@ public abstract class AsyncExecutionAspectSupport implements BeanFactoryAware {
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			catch (NoSuchBeanDefinitionException ex) {
 | 
								catch (NoSuchBeanDefinitionException ex) {
 | 
				
			||||||
				logger.debug("Could not find default TaskExecutor bean", ex);
 | 
									logger.debug("Could not find default TaskExecutor bean. " +
 | 
				
			||||||
 | 
											"Continuing search for an Executor bean named 'taskExecutor'", ex);
 | 
				
			||||||
				try {
 | 
									try {
 | 
				
			||||||
					return beanFactory.getBean(DEFAULT_TASK_EXECUTOR_BEAN_NAME, Executor.class);
 | 
										return beanFactory.getBean(DEFAULT_TASK_EXECUTOR_BEAN_NAME, Executor.class);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue