[Spice-devel] [PATCH spice-common 1/4] log: replace spice log with glib

Victor Toso victortoso at redhat.com
Tue Jun 13 12:55:36 UTC 2017


Hi,

On Mon, Jun 12, 2017 at 05:27:57PM +0200, Christophe Fergeau wrote:
> On Mon, Jun 12, 2017 at 12:19:51PM +0400, marcandre.lureau at redhat.com wrote:
> > From: Marc-André Lureau <marcandre.lureau at redhat.com>
> >
> > Remove all the deprecated spice log macro/environment variables
>
> Note that the environment variables were never deprecated in a stable
> release. Probably would be nice to keep them a bit longer, though I'd
> be fine with degraded functionality (ie just handle what maps directly
> to glib G_DEBUG/G_MESSAGES_DEBUG), so that spice_logger is no longer
> needed.
> Keeping the exact same behaviour of these env vars is the main reason
> for the convoluted code that you are removing.
>
> Christophe

Considering that you have added a warning in efd1d3cb4d8eee [0] for
SPICE_DEBUG_LEVEL in favor of G_MESSAGES_DEBUG In Jan 2016 and we have
three releases with it, I don't see what's the problem to remove them
after the next release (and mentioning that this release is the last
supported with those variable(s) and user should do use
G_DEBUG/G_MESSAGES_DEBUG from now on).

[0] https://gitlab.com/spice/spice-common/commit/efd1d3cb4d8eee#f67439a0d1276bbac550ebed2728be8ba7c2170c_82_67

It should simplify things a lot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170613/22c2c22b/attachment.sig>


More information about the Spice-devel mailing list