Apply 1 suggestion(s) to 1 file(s)

This commit is contained in:
Emmanuele Bassi 2022-08-07 18:54:19 +00:00 committed by Matthias Clasen
parent 703fc51d8e
commit ba1a084899

View File

@ -69,9 +69,13 @@ static gboolean
would_drop (GLogLevelFlags level,
const char *domain)
{
#if GLIB_CHECK_VERSION (2, 68, 0)
return g_log_writer_default_would_drop (level, domain);
#else
return (level & (G_LOG_LEVEL_ERROR |
G_LOG_LEVEL_CRITICAL |
G_LOG_LEVEL_WARNING)) == 0;
#endif
}
static gboolean