mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 20:08:04 +02:00
test: fix enabling DEBUG logging for tests
For glog messages to print any debug messages, we must set G_MESSAGES_DEBUG.
nmtst does this for us if we set @is_debug. But fix the condition to
also set G_MESSAGES_DEBUG if set set c_log_level to DEBUG or TRACE.
(cherry picked from commit 3abeb7f2b9)
This commit is contained in:
parent
ad5159156a
commit
c0534e9a6d
1 changed files with 1 additions and 1 deletions
|
|
@ -300,7 +300,7 @@ __nmtst_init (int *argc, char ***argv, gboolean assert_logging, const char *log_
|
|||
}
|
||||
|
||||
if ((!__nmtst_internal.assert_logging || (__nmtst_internal.assert_logging && __nmtst_internal.no_expect_message)) &&
|
||||
(is_debug || (log_level && !g_ascii_strcasecmp (log_level, "DEBUG"))) &&
|
||||
(is_debug || (c_log_level && (!g_ascii_strcasecmp (c_log_level, "DEBUG") || !g_ascii_strcasecmp (c_log_level, "TRACE")))) &&
|
||||
!g_getenv ("G_MESSAGES_DEBUG"))
|
||||
{
|
||||
/* if we are @is_debug or @log_level=="DEBUG" and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue