From 3d97f2645356adca1e9e6eeca4f735a1acbed15d Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Mon, 19 Nov 2012 13:10:39 +0100 Subject: debug: print fatal and critical errors if debug level is unresolved If global variable debug_level has value SSSDBG_UNRESOLVED, we should print at least fatal and critical errors. https://fedorahosted.org/sssd/ticket/1345 --- src/util/util.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/util.h b/src/util/util.h index 2d63e733f..75ac771b2 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -193,7 +193,10 @@ errno_t set_debug_file_from_fd(const int fd); \param level the debug level, please use one of the SSSDBG*_ macros */ -#define DEBUG_IS_SET(level) (debug_level & (level)) +#define DEBUG_IS_SET(level) (debug_level & (level) || \ + (debug_level == SSSDBG_UNRESOLVED && \ + (level & (SSSDBG_FATAL_FAILURE | \ + SSSDBG_CRIT_FAILURE)))) #define DEBUG_INIT(dbg_lvl) do { \ if (dbg_lvl != SSSDBG_INVALID) { \ -- cgit