Fix abort in qof_log_check.

Apparently g_logv doesn't like recursive calls from its log handler.
This commit is contained in:
John Ralls
2020-05-15 12:52:18 -07:00
parent 8283263459
commit a81f155408

View File

@@ -322,22 +322,14 @@ gboolean
qof_log_check(QofLogModule domain, QofLogLevel level)
{
if (!domain)
{
PWARN ("Domain not set");
return FALSE;
}
if (!level)
{
PWARN("0 is not a valid log level");
return FALSE;
}
auto module = get_modules();
// If the level is < the default then no need to look further.
if (level < module->m_level)
return TRUE;
if (!domain)
return FALSE;
auto domain_vec = split_domain(domain);
for (auto part : domain_vec)