Add info log message if AOT mode is enabled
Closes gh-32396
This commit is contained in:
parent
4700a00d94
commit
6cb7fb5897
|
|
@ -385,6 +385,7 @@ public class SpringApplication {
|
||||||
if (this.logStartupInfo) {
|
if (this.logStartupInfo) {
|
||||||
logStartupInfo(context.getParent() == null);
|
logStartupInfo(context.getParent() == null);
|
||||||
logStartupProfileInfo(context);
|
logStartupProfileInfo(context);
|
||||||
|
logStartupAotMode();
|
||||||
}
|
}
|
||||||
// Add boot specific singleton beans
|
// Add boot specific singleton beans
|
||||||
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
|
ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
|
||||||
|
|
@ -640,6 +641,15 @@ public class SpringApplication {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called to log the AOT mode.
|
||||||
|
*/
|
||||||
|
protected void logStartupAotMode() {
|
||||||
|
if (AotDetector.useGeneratedArtifacts()) {
|
||||||
|
logger.info("AOT mode enabled");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private List<String> quoteProfiles(String[] profiles) {
|
private List<String> quoteProfiles(String[] profiles) {
|
||||||
return Arrays.stream(profiles).map((profile) -> "\"" + profile + "\"").toList();
|
return Arrays.stream(profiles).map((profile) -> "\"" + profile + "\"").toList();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue