[Swan-dev] prefixing debug lines with connection/state?

Antony Antony antony at phenome.org
Mon Oct 30 16:00:02 UTC 2017


On Mon, Oct 30, 2017 at 10:18:58AM -0400, Andrew Cagney wrote:
> On 18 October 2017 at 14:11, Antony Antony <antony at phenome.org> wrote:
> 
> > On Wed, Oct 18, 2017 at 11:35:55AM -0400, Andrew Cagney wrote:
> > > Hi,
> > >
> > > I'm wondering if debug output should be prefixed with the
> > connection/state
> > > information as in:
> > >
> > > | "westnet-eastnet" #1: .....
> >
> > If every line add such a prefix it would be hard to read, I would struggle
> > to read the debug logs prepended with 10-30 character prefix, think of OE,
> > the prefix will be long. I have tried it in th past and did not like it,
> > except
> > for grepping:)
> >
> > It could be setup option, like logtime.
> >
> >
> Yea.  I'm going to add:
> 
>   --debug add-prefix

I would love to see a testrun with this enabled before merging it to master.  
I am wondering how oe tests debug like will look like.  Also if you eanble 
time.

just a wish,

-antony


More information about the Swan-dev mailing list