Display warnings, critical and error messages even if not in verbose mode

This commit is contained in:
Colomban Wendling 2012-06-03 16:50:57 +02:00
parent 70e0f6eaa0
commit e98f11cbc5

View File

@ -116,7 +116,8 @@ static void handler_log(const gchar *domain, GLogLevelFlags level, const gchar *
{
gchar *time_str;
if (G_LIKELY(app != NULL && app->debug_mode))
if (G_LIKELY(app != NULL && app->debug_mode) ||
! ((G_LOG_LEVEL_DEBUG | G_LOG_LEVEL_INFO | G_LOG_LEVEL_MESSAGE) & level))
{
#ifdef G_OS_WIN32
/* On Windows g_log_default_handler() is not enough, we need to print it