fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Collecting output when using Fabric directly in python


From: listsin
Subject: Re: [Fab-user] Collecting output when using Fabric directly in python
Date: Sun, 16 Aug 2009 13:57:35 -0400


On Aug 15, 2009, at 11:03 PM, Jeff Forcier wrote:

Stderr is not currently captured in this manner, though I might be
amenable to adding this functionality in the future (e.g. a
"capture_stderr" boolean keyword argument that switches the behavior
from capturing stdout to capturing stderr.)

I would like this too.

I've mostly been using Fabric from the command line, with a local fabfile.py.

Now, I'm just starting to call into Fabric code from regular Python scripts and can see that I'm going to need this functionality, too.

Can this be done more nicely as a decorator since we've already got a Python 2.5+ requirement anyway?

@capture_stderr
def func_that_wants_stderr(...)
        pass

Thanks,

S





reply via email to

[Prev in Thread] Current Thread [Next in Thread]