Re: [ovs-dev] [PATCH] unixctl: Log commands received and their replies (at debug level).

2016-03-07 Thread Ben Pfaff
On Mon, Mar 07, 2016 at 01:00:28PM -0800, Justin Pettit wrote: > > > On Mar 7, 2016, at 11:19 AM, Ben Pfaff wrote: > > > > +if (VLOG_IS_DBG_ENABLED()) { > > +char *params = json_to_string(request->params, 0); > > +char *id = json_to_string(request->id, 0); > >

Re: [ovs-dev] [PATCH] unixctl: Log commands received and their replies (at debug level).

2016-03-07 Thread Justin Pettit
> On Mar 7, 2016, at 11:19 AM, Ben Pfaff wrote: > > +if (VLOG_IS_DBG_ENABLED()) { > +char *params = json_to_string(request->params, 0); > +char *id = json_to_string(request->id, 0); > +VLOG_DBG("received request %s%s, id=%s", request->method, params, >

[ovs-dev] [PATCH] unixctl: Log commands received and their replies (at debug level).

2016-03-07 Thread Ben Pfaff
These commands are also visible through the "jsonrpc" module, but turning up the log level there also exposes a lot of OVSDB traffic that usually isn't interesting. Also, enable this logging for the tests. Signed-off-by: Ben Pfaff --- lib/unixctl.c | 17