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

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

 



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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]