mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix abort in qof_log_check.
Apparently g_logv doesn't like recursive calls from its log handler.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user