fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Suppressing [hostname] from stdout


From: Miquel Torres
Subject: Re: [Fab-user] Suppressing [hostname] from stdout
Date: Sat, 11 Jun 2011 09:36:52 +0200

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 <address@hidden>:
> On Fri, Jun 10, 2011 at 2:06 AM, Miquel <address@hidden> 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
>



reply via email to

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