I hereby claim:
- I am bendikwa on github.
- I am bendikwa (https://keybase.io/bendikwa) on keybase.
- I have a public key ASAvxKkVFQbbIUqYUXvQN7OEunlwZ_0I522i0SRFKJAMIAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
import subprocess | |
import select | |
from logging import DEBUG, ERROR | |
def call(popenargs, logger, stdout_log_level=DEBUG, stderr_log_level=ERROR, **kwargs): | |
""" | |
Variant of subprocess.call that accepts a logger instead of stdout/stderr, | |
and logs stdout messages via logger.debug and stderr messages via | |
logger.error. |