[Spice-devel] [spice-common v4 3/7] log: Use glib for logging
Christophe Fergeau
cfergeau at redhat.com
Thu Mar 24 15:20:28 UTC 2016
Hey,
Sorry, hadn't noticed this message earlier.
On Wed, Mar 09, 2016 at 01:43:14PM -0600, Jeremy White wrote:
> I realize I'm rather late to the party, but this change causes troubles
> with Xspice.
>
> That is, Xorg, on startup, closes stdout.
>
> Since the g_log_default_handler writes to stdout for DEBUG and INFO
> messages, those messages never show up anywhere.
Ah, and this worked before because all messages wer output to stderr
>
> The attached patch 'fixes' it. I'm a bit hesitant to pursue this
> approach; I do not know if using stdout will have a negative side effect
> on the Xorg server.
>
> Anyone else have insight? I'll more formally submit this if I don't
> hear anything back.
An alternative would be to use g_log_set_default_handler()
Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160324/595587b6/attachment.sig>
More information about the Spice-devel
mailing list