sanitycheck: all output from flasher goes to logger.debug

Redirect all output from flasher to logger.debug().

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-12-09 16:42:58 -05:00
parent f16ed8e0b8
commit fa8085eb7b

View file

@ -790,8 +790,8 @@ class DeviceHandler(Handler):
with subprocess.Popen(command, stderr=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
try:
(stdout, stderr) = proc.communicate(timeout=30)
if VERBOSE:
print(stdout.decode())
logger.debug(stdout.decode())
if proc.returncode != 0:
self.instance.reason = "Device issue (Flash?)"
with open(d_log, "w") as dlog_fp: