Changes in logging

This commit is contained in:
VirtuBox
2019-09-05 11:59:57 +02:00
parent 44d0514da6
commit 63188b1905
2 changed files with 5 additions and 4 deletions

View File

@@ -59,7 +59,8 @@ class WOService():
retcode = subprocess.getstatusoutput('service {0} stop'
.format(service_name))
if retcode[0] == 0:
Log.info(self, "[" + Log.ENDC + "OK" + Log.OKBLUE + "]")
Log.info(self, "[" + Log.ENDC + Log.GREEN "OK" +
Log.ENDC + Log.OKBLUE + "]")
return True
else:
Log.debug(self, "{0}".format(retcode[1]))