aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/afb-trace.c b/src/afb-trace.c
index 2d098407..f97d9252 100644
--- a/src/afb-trace.c
+++ b/src/afb-trace.c
@@ -40,6 +40,7 @@
#include "afb-trace.h"
#include "wrap-json.h"
+#include "verbose.h"
/*******************************************************************************/
/***** default names *****/
@@ -182,7 +183,7 @@ static const char *verbosity_level_name(int level)
"debug"
};
- return level >= 3 && level <= 7 ? names[level - 3] : NULL;
+ return level >= Log_Level_Error && level <= Log_Level_Debug ? names[level - Log_Level_Error] : NULL;
}
/* generic hook */