wslog: Fatal messages should always be active

This commit is contained in:
João Valverde 2021-06-25 14:29:48 +01:00
parent 472eaf911b
commit c2c256f0d8
1 changed files with 6 additions and 0 deletions

View File

@ -200,6 +200,12 @@ gboolean ws_log_msg_is_active(const char *domain, enum ws_log_level level)
if (level >= LOG_LEVEL_CRITICAL)
return TRUE;
/*
* Check if the level has been configured as fatal.
*/
if (level >= fatal_log_level)
return TRUE;
/*
* The debug/noisy filter overrides the other parameters.
*/