<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 30 October 2017 at 12:00, Antony Antony <span dir="ltr"><<a href="mailto:antony@phenome.org" target="_blank">antony@phenome.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Mon, Oct 30, 2017 at 10:18:58AM -0400, Andrew Cagney wrote:<br>
> On 18 October 2017 at 14:11, Antony Antony <<a href="mailto:antony@phenome.org">antony@phenome.org</a>> wrote:<br>
><br>
> > On Wed, Oct 18, 2017 at 11:35:55AM -0400, Andrew Cagney wrote:<br>
> > > Hi,<br>
> > ><br>
> > > I'm wondering if debug output should be prefixed with the<br>
> > connection/state<br>
> > > information as in:<br>
> > ><br>
> > > | "westnet-eastnet" #1: .....<br>
> ><br>
> > If every line add such a prefix it would be hard to read, I would struggle<br>
> > to read the debug logs prepended with 10-30 character prefix, think of OE,<br>
> > the prefix will be long. I have tried it in th past and did not like it,<br>
> > except<br>
> > for grepping:)<br>
> ><br>
> > It could be setup option, like logtime.<br>
> ><br>
> ><br>
> Yea.  I'm going to add:<br>
><br>
>   --debug add-prefix<br>
<br>
</span>I would love to see a testrun with this enabled before merging it to master.<br>
I am wondering how oe tests debug like will look like.  Also if you eanble<br>
time.<br><br></blockquote><div><br></div><div>The below is from after explicitly enabling the option with:<br></div><div><br></div><div>    ipsec whack --debug add-prefix</div><div> <br></div><div>Oct 30 12:38:55.367727: | "private-or-clear#<a href="http://192.1.2.0/24">192.1.2.0/24</a>"[1] ...192.1.2.23 #1 UNDEFINED: category states: 1 count states: 1<br>Oct 30 12:38:55.367875: | "private-or-clear#<a href="http://192.1.2.0/24">192.1.2.0/24</a>"[1] ...192.1.2.23 #1 PARENT_I1: Queuing pending IPsec SA negotiating with 192.1.2.23 "private-or-clear#<a href="http://192.1.2.0/24">192.1.2.0/24</a>"[1] ...192.1.2.23 IKE SA #1 "private-or-clear#<a href="http://192.1.2.0/24">192.1.2.0/24</a>"[1] ...192.1.2.23<br>O<br></div><div><br></div><div> <br></div></div></div></div>