You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2020/01/03 11:20:38 UTC

[camel] 05/06: Polished

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 336e62856ab7140ee95d79c0839f22ed4735d3e1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jan 3 12:11:23 2020 +0100

    Polished
---
 .../org/apache/camel/support/service/ServiceSupport.java   | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java
index be5db4f..6b499cf5 100644
--- a/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java
+++ b/core/camel-api/src/main/java/org/apache/camel/support/service/ServiceSupport.java
@@ -65,6 +65,7 @@ public abstract class ServiceSupport implements StatefulService {
                         throw RuntimeCamelException.wrapRuntimeException(e);
                     }
                     status = BUILDED;
+                    log.trace("Built service: {}", this);
                 }
             }
         }
@@ -82,6 +83,7 @@ public abstract class ServiceSupport implements StatefulService {
                         throw RuntimeCamelException.wrapRuntimeException(e);
                     }
                     status = INITIALIZED;
+                    log.trace("Initialized service: {}", this);
                 }
             }
         }
@@ -116,7 +118,7 @@ public abstract class ServiceSupport implements StatefulService {
                 log.trace("Starting service: {}", this);
                 doStart();
                 status = STARTED;
-                log.trace("Service started: {}", this);
+                log.trace("Started service: {}", this);
             } catch (Exception e) {
                 // need to stop as some resources may have been started during startup
                 try {
@@ -158,7 +160,7 @@ public abstract class ServiceSupport implements StatefulService {
             try {
                 doStop();
                 status = STOPPED;
-                log.trace("Service: {} stopped service", this);
+                log.trace("Stopped: {} service", this);
             } catch (Exception e) {
                 status = FAILED;
                 log.trace("Error while stopping service: " + this, e);
@@ -189,7 +191,7 @@ public abstract class ServiceSupport implements StatefulService {
             try {
                 doSuspend();
                 status = SUSPENDED;
-                log.trace("Service suspended: {}", this);
+                log.trace("Suspended service: {}", this);
             } catch (Exception e) {
                 status = FAILED;
                 log.trace("Error while suspending service: " + this, e);
@@ -216,7 +218,7 @@ public abstract class ServiceSupport implements StatefulService {
             try {
                 doResume();
                 status = STARTED;
-                log.trace("Service resumed: {}", this);
+                log.trace("Resumed service: {}", this);
             } catch (Exception e) {
                 status = FAILED;
                 log.trace("Error while resuming service: " + this, e);
@@ -235,7 +237,7 @@ public abstract class ServiceSupport implements StatefulService {
     public void shutdown() {
         synchronized (lock) {
             if (status == SHUTDOWN) {
-                log.trace("Service: {} already shut down", this);
+                log.trace("Service: {} already shutdown", this);
                 return;
             }
             if (status == SHUTTINGDOWN) {
@@ -247,7 +249,7 @@ public abstract class ServiceSupport implements StatefulService {
             log.trace("Shutting down service: {}", this);
             try {
                 doShutdown();
-                log.trace("Service: {} shut down", this);
+                log.trace("Shutdown service: {}", this);
                 status = SHUTDOWN;
             } catch (Exception e) {
                 status = FAILED;