moved service validation to debug, to limit error messages causing confusion about failures
This commit is contained in:
parent
fcee44775a
commit
c0ce07404f
2 changed files with 3 additions and 4 deletions
|
@ -224,7 +224,6 @@ class Sdt(object):
|
||||||
|
|
||||||
:return: nothing
|
:return: nothing
|
||||||
"""
|
"""
|
||||||
logging.info("SDT shutdown!")
|
|
||||||
self.cmd("clear all")
|
self.cmd("clear all")
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
self.showerror = True
|
self.showerror = True
|
||||||
|
|
|
@ -587,7 +587,7 @@ class CoreServices(object):
|
||||||
:return: service validation status
|
:return: service validation status
|
||||||
:rtype: int
|
:rtype: int
|
||||||
"""
|
"""
|
||||||
logging.info("validating node(%s) service(%s)", node.name, service.name)
|
logging.debug("validating node(%s) service(%s)", node.name, service.name)
|
||||||
cmds = service.validate
|
cmds = service.validate
|
||||||
if not service.custom:
|
if not service.custom:
|
||||||
cmds = service.get_validate(node)
|
cmds = service.get_validate(node)
|
||||||
|
@ -598,10 +598,10 @@ class CoreServices(object):
|
||||||
try:
|
try:
|
||||||
node.check_cmd(cmd)
|
node.check_cmd(cmd)
|
||||||
except CoreCommandError as e:
|
except CoreCommandError as e:
|
||||||
logging.error(
|
logging.debug(
|
||||||
"node(%s) service(%s) validate failed", node.name, service.name
|
"node(%s) service(%s) validate failed", node.name, service.name
|
||||||
)
|
)
|
||||||
logging.error("cmd(%s): %s", e.cmd, e.output)
|
logging.debug("cmd(%s): %s", e.cmd, e.output)
|
||||||
status = -1
|
status = -1
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue