Ok, so if I want not to show [hostname] just for a single command, I
need to then set the global env.output_prefix to False, and then again
to True, right? (cannot test right now).

That would certainly solve my problem.

> Full control over the prefix is coming soon, hopefully in 1.2 (for
> reference, 1.1 will be out either this weekend or in a couple of
> weeks) and may also coincide with integrating a logging module, FYI.

Awesome, thanks a lot!


2011/6/11 Jeff Forcier <[email protected]>:
> On Fri, Jun 10, 2011 at 2:06 AM, Miquel <[email protected]> wrote:
>> Hi,
>>
>> is there a way to prevent fabric from prepending [hostname] to stdout?
>
> Not exactly -- you can prevent the entire "[hostname] <command-type>:"
> from showing up (in 1.x) by specifying env.output_prefix = False --
> but it's not yet possible to customize the format of that prefix when
> it *is* enabled. So if you're OK not being able to see what is stdout
> vs what is stderr, that'll do the job.
>
> Full control over the prefix is coming soon, hopefully in 1.2 (for
> reference, 1.1 will be out either this weekend or in a couple of
> weeks) and may also coincide with integrating a logging module, FYI.
>
>
> --
> Jeff Forcier
> Unix sysadmin; Python/Ruby engineer
> http://bitprophet.org
>

_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to