Skip to content

Commit 93f4719

Browse files
committed
Use INFO level for lifecycle logging
Change LoggingSmartLifecycle to log lifecycle events at INFO level by replacing logger.isDebugEnabled()/logger.debug(...) with logger.isInfoEnabled()/logger.info(...) in doStart() and doStop(), ensuring start/stop messages are visible at INFO level.
1 parent 0229ac8 commit 93f4719

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

microsphere-spring-context/src/main/java/io/microsphere/spring/context/lifecycle/LoggingSmartLifecycle.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ public class LoggingSmartLifecycle extends AbstractSmartLifecycle {
7878

7979
@Override
8080
protected void doStart() {
81-
if (logger.isDebugEnabled()) {
82-
logger.debug("doStart()...");
81+
if (logger.isInfoEnabled()) {
82+
logger.info("doStart()...");
8383
}
8484
}
8585

8686
@Override
8787
protected void doStop() {
88-
if (logger.isDebugEnabled()) {
89-
logger.debug("doStop()...");
88+
if (logger.isInfoEnabled()) {
89+
logger.info("doStop()...");
9090
}
9191
}
9292
}

0 commit comments

Comments
 (0)