Re: Message Log Level Proposals



On 2001.02.22 18:49:49 -0800 Sven Neumann wrote:
> On a related issue, I'd welcome if the --g-fatal-warnings functionality 
> would be integrated into glib since I had to find out today that this 
> important debugging tool is missing after I ported my app from GTK+ to 
> GObject.

I recently noticed the same thing.

Try:
    GLogLevelFlags fatal_mask;
    /* crash on GTK warnings */
    fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
    fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
    g_log_set_always_fatal (fatal_mask);

Which I stole directly from the GTK init code from the section mentioning
--g-fatal-warnings.

Not a solution, but it'll work while you debug it. :)

-- 
Evan Martin - eeyem u washington edu
http://students.washington.edu/eeyem




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