update logging_subprocess function

1. added newline for return
2. added one-time warning (once per subprocess)
This commit is contained in:
Sam Libby
2017-12-11 09:25:49 -07:00
committed by GitHub
parent 76895dcf69
commit 4f4785085d

View File

@@ -69,12 +69,15 @@ def logging_subprocess(popenargs,
"""
child = subprocess.Popen(popenargs, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, **kwargs)
if sys.platform == 'win32':
log_info("Windows operating system detected - no subprocess logging will be returned")
log_level = {child.stdout: stdout_log_level,
child.stderr: stderr_log_level}
def check_io():
if sys.platform == 'win32': return
if sys.platform == 'win32':
return
ready_to_read = select.select([child.stdout, child.stderr],
[],
[],