Include timeout unit in shutdown failure logging

Closes gh-25058
This commit is contained in:
Andy Wilkinson
2020-05-12 16:38:33 +01:00
committed by Sam Brannen
parent ef27bc4b82
commit 1015f79b42

View File

@@ -386,7 +386,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
if (latch.getCount() > 0 && !countDownBeanNames.isEmpty() && logger.isInfoEnabled()) {
logger.info("Failed to shut down " + countDownBeanNames.size() + " bean" +
(countDownBeanNames.size() > 1 ? "s" : "") + " with phase value " +
this.phase + " within timeout of " + this.timeout + ": " + countDownBeanNames);
this.phase + " within timeout of " + this.timeout + "ms: " + countDownBeanNames);
}
}
catch (InterruptedException ex) {