Alon Bar-Lev has uploaded a new change for review.

Change subject: services: cleanup: fix debug message
......................................................................

services: cleanup: fix debug message

Change-Id: I2151f08b41b6fecd623ff302cca4b33a61e34ae9
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/plugins/otopi/services/openrc.py
M src/plugins/otopi/services/rhel.py
M src/plugins/otopi/services/systemd.py
3 files changed, 15 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/otopi refs/changes/30/13130/1

diff --git a/src/plugins/otopi/services/openrc.py 
b/src/plugins/otopi/services/openrc.py
index e110809..92a53da 100644
--- a/src/plugins/otopi/services/openrc.py
+++ b/src/plugins/otopi/services/openrc.py
@@ -104,7 +104,11 @@
         )
 
     def state(self, name, state):
-        self.logger.debug('starting service %s', name)
+        self.logger.debug(
+            '%s service %s',
+            'starting' if state else 'stopping',
+            name
+        )
         self._executeServiceCommand(
             name,
             'start' if state else 'stop'
diff --git a/src/plugins/otopi/services/rhel.py 
b/src/plugins/otopi/services/rhel.py
index fa67035..d91e386 100644
--- a/src/plugins/otopi/services/rhel.py
+++ b/src/plugins/otopi/services/rhel.py
@@ -166,7 +166,11 @@
             )
 
     def state(self, name, state):
-        self.logger.debug('starting service %s', name)
+        self.logger.debug(
+            '%s service %s',
+            'starting' if state else 'stopping',
+            name
+        )
         (upstart, status) = self._isUpstart(name)
         if upstart:
             #
diff --git a/src/plugins/otopi/services/systemd.py 
b/src/plugins/otopi/services/systemd.py
index 9e567f4..95ba52a 100644
--- a/src/plugins/otopi/services/systemd.py
+++ b/src/plugins/otopi/services/systemd.py
@@ -128,7 +128,11 @@
         )
 
     def state(self, name, state):
-        self.logger.debug('starting service %s', name)
+        self.logger.debug(
+            '%s service %s',
+            'starting' if state else 'stopping',
+            name
+        )
         self._executeServiceCommand(
             name,
             'start' if state else 'stop'


--
To view, visit http://gerrit.ovirt.org/13130
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2151f08b41b6fecd623ff302cca4b33a61e34ae9
Gerrit-PatchSet: 1
Gerrit-Project: otopi
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to