After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671928 - Support explicitly setting G_MESSAGES_DEBUG
Support explicitly setting G_MESSAGES_DEBUG
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: general
3.3.x
Other Linux
: Normal minor
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-12 18:04 UTC by Martin Pitt
Modified: 2012-03-13 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support explicitly setting G_MESSAGES_DEBUG (992 bytes, patch)
2012-03-12 18:04 UTC, Martin Pitt
committed Details | Review

Description Martin Pitt 2012-03-12 18:04:08 UTC
I noticed that it's currently impossible to only get debug
messages for one plugin, as g-s-d does

        if (debug)
                 g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);

So right now you can just choose between "no debug messages" and "all debug messages". It would be handy if you could do

  G_MESSAGES_DEBUG=mouse-plugin gnome-settings-daemon/gnome-settings-daemon --debug
Comment 1 Martin Pitt 2012-03-12 18:04:46 UTC
Created attachment 209517 [details] [review]
Support explicitly setting G_MESSAGES_DEBUG
Comment 2 Ray Strode [halfline] 2012-03-13 00:09:40 UTC
couldn't you just change the overwrite parameter of g_setenv to be FALSE instead of adding the check?
Comment 3 Ray Strode [halfline] 2012-03-13 00:10:07 UTC
oh nevermind me, i didn't see that this bug is already closed FIXED
Comment 4 Martin Pitt 2012-03-13 06:09:18 UTC
@Ray: indeed, that'd be more elegant. I'm happy to fix that if Bastien is OK with that.
Comment 5 Bastien Nocera 2012-03-13 11:06:33 UTC
Either way. Feel free to commit that change if you feel it is necessary.
Comment 6 Martin Pitt 2012-03-13 11:10:41 UTC
Done.