From a81f155408e9b6ffd161f54959d5adde57602aea Mon Sep 17 00:00:00 2001 From: John Ralls Date: Fri, 15 May 2020 12:52:18 -0700 Subject: [PATCH] Fix abort in qof_log_check. Apparently g_logv doesn't like recursive calls from its log handler. --- libgnucash/engine/qoflog.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/libgnucash/engine/qoflog.cpp b/libgnucash/engine/qoflog.cpp index 89cc88a327..d9f87e1e21 100644 --- a/libgnucash/engine/qoflog.cpp +++ b/libgnucash/engine/qoflog.cpp @@ -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)