Comment 7 for bug 977110

Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 977110] Re: sound_repeat option not working

On 13/04/2012 02:58, Johannes H. Jensen wrote:
> Can you please try the attached program on your 12.04 system?

Based on Glib 2.32's documentation, g_log_default_handler() that only debug
messages for which G_MESSAGES_DEBUG[1] contains G_LOG_DOMAIN[2] are printed out.

In other words, something like this works:
---8<---
#define G_LOG_DOMAIN "foo"
#include <glib.h>
int main ()
{
    g_debug ("foo");
    return 0;
};
--->8---

$ G_MESSAGES_DEBUG=foo ./a.out

[1]
http://developer.gnome.org/glib/stable/glib-Message-Logging.html#g-log-default-handler
[2]
http://developer.gnome.org/glib/stable/glib-Message-Logging.html#G-LOG-DOMAIN:CAPS

--
Kind regards,
Loong Jin