[Spice-devel] [PATCH spice-common 0/4] RFC: add structured logging and log category

Christophe Fergeau cfergeau at redhat.com
Tue Jun 13 09:41:06 UTC 2017


On Tue, Jun 13, 2017 at 11:26:46AM +0200, Christophe de Dinechin wrote:
> > 
> >> Let's first see if we manage to add useful debug logs to both the client
> >> and the server, then we can look into adding this :)
> 
> I agree. I was explaining why I had made a choice to have a dedicated function taking a string argument with the options, rather than directly reading the environment variable.
> 
> >> In the mean time, this will probably be possible to do through a gdb script.
> 
> One that I can run client side?

Either client and server are the same, so yes, you can run it client
side. Either they are not on the same machine, and you'll have to log on
the server to access the server-side logs anyways. Unless you are
suggesting sending the server logs to the client, in which case I missed
it in your suggestion.

> BTW, having a function also means I could do something like:
> 
> - attach gdb to the server
> - Run ‘p spice_set_trace(“ssl:marshal_read”)’

Which is roughly what I suggested when I mentioned a gdb script (though
you can probably also directly modify the relevant categories rather than
having a dedicated function)

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170613/3f82614c/attachment.sig>


More information about the Spice-devel mailing list