log: make debug level 0 enable fatal errors

We always want to show fatal errors
This commit is contained in:
George Kiagiadakis
2023-05-19 10:58:31 +03:00
parent 3034fc7c79
commit cbf0d7284a

View File

@@ -282,7 +282,7 @@ static G_GNUC_CONST inline gint
level_index_from_spa (gint spa_lvl) level_index_from_spa (gint spa_lvl)
{ {
if (G_UNLIKELY (spa_lvl <= SPA_LOG_LEVEL_NONE)) if (G_UNLIKELY (spa_lvl <= SPA_LOG_LEVEL_NONE))
return 0; return 1;
else if (spa_lvl < SPA_LOG_LEVEL_WARN) else if (spa_lvl < SPA_LOG_LEVEL_WARN)
return spa_lvl + 1; return spa_lvl + 1;
else if (G_UNLIKELY (spa_lvl > SPA_LOG_LEVEL_TRACE)) else if (G_UNLIKELY (spa_lvl > SPA_LOG_LEVEL_TRACE))