drmaa-python icon indicating copy to clipboard operation
drmaa-python copied to clipboard

WIP: Redirect C stdout & stderr to log

Open jakirkham opened this issue 7 years ago • 3 comments

Fixes https://github.com/pygridtools/drmaa-python/issues/69

Captures C's stdout and stderr and logs it instead. Useful if the DRMAA implementation prints log messages out that one would like to capture.

jakirkham avatar Jul 27 '18 23:07 jakirkham

Coverage Status

Coverage decreased (-0.4%) to 90.575% when pulling 6a9ebb957c4cdf5c100a8ac975a1a8ba99ae334c on jakirkham:redirect_c_stdout_stderr into 61b5eb6e87d2895bf66d7dd68aae9ba2198c1c0b on pygridtools:master.

coveralls avatar Jul 27 '18 23:07 coveralls

It looks like this is failing on python 2.6 because there's no logging.NullHandler defined. Do you think that his solution would work?

https://stackoverflow.com/a/34939479/780188

dfornika avatar Feb 16 '19 23:02 dfornika

Wouldn't worry about Python 2.6 as it was dropped upstream.

The main issue was it wasn't capturing the C stdout/stderr when testing it locally. So there's probably more to do here, but haven't looked into what is needed recently. If you have time/interest to explore this issue, that would be very helpful.

jakirkham avatar Feb 17 '19 06:02 jakirkham