moved service validation to debug, to limit error messages causing confusion about failures

This commit is contained in:
Blake Harnden 2019-09-13 13:26:30 -07:00
parent fcee44775a
commit c0ce07404f
2 changed files with 3 additions and 4 deletions

View file

@ -224,7 +224,6 @@ class Sdt(object):
:return: nothing
"""
logging.info("SDT shutdown!")
self.cmd("clear all")
self.disconnect()
self.showerror = True

View file

@ -587,7 +587,7 @@ class CoreServices(object):
:return: service validation status
: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
if not service.custom:
cmds = service.get_validate(node)
@ -598,10 +598,10 @@ class CoreServices(object):
try:
node.check_cmd(cmd)
except CoreCommandError as e:
logging.error(
logging.debug(
"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
break