It turns out that setting both to PIPE would result in stderr not being read for some reason. So follow https://docs.python.org/3/library/subprocess.html and set stdout to PIPE and stderr to STDOUT. Tested with a process (electrs) which logs on stderr.