INNER CODE UNIT · Python
_log_output
jd/pifpaf · pifpaf/drivers/__init__.py:138
def _log_output(appname, pid, data):
data = os.fsdecode(data)
LOG.debug("%s[%d] output: %s", appname, pid, data.rstrip())
def _exec(self, command, stdout=False, ignore_failure=False,
stdin=None, wait_for_line=None, wait_for_port=None,
path=[], env=None,
forbidden_line_after_start=None,
allow_debug=True):
LOG.debug("executing: %s", command)
app = command[0]
debug = allow_debug and LOG.isEnabledFor(logging.DEBUG)
if stdout or wait_for_line or debug:
stdout_fd = subprocess.PIPE
else: