summaryrefslogtreecommitdiffstats
path: root/src/util/util.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-04-27 15:28:07 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-05-04 10:14:40 -0400
commitd3750f3c3a9e232629c8b634b7b5407114667700 (patch)
tree3f9a038c2e99edcde2d50ac7ab7ecc7e6429883b /src/util/util.h
parentb36dfa237c0d9ad3a1c9d59790d6aab3b1e2e82d (diff)
downloadsssd-d3750f3c3a9e232629c8b634b7b5407114667700.tar.gz
sssd-d3750f3c3a9e232629c8b634b7b5407114667700.tar.xz
sssd-d3750f3c3a9e232629c8b634b7b5407114667700.zip
Override config file debug_level with command-line
This patch also makes the following changes: 1) The [sssd] debug_level setting no longer acts as a default for all other sections. 2) We will now skip passing the debug argument to the child processes from the master unless the SSSD was run with a command-line argument for the debug level. https://fedorahosted.org/sssd/ticket/764
Diffstat (limited to 'src/util/util.h')
-rw-r--r--src/util/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 61fe7f6c2..ac6704ae3 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -60,6 +60,9 @@ extern const char *debug_log_file;
void debug_fn(const char *format, ...);
errno_t set_debug_file_from_fd(const int fd);
+#define SSS_DEFAULT_DEBUG_LEVEL 0
+#define SSS_UNRESOLVED_DEBUG_LEVEL -1
+
#define SSSD_DEBUG_OPTS \
{"debug-level", 'd', POPT_ARG_INT, &debug_level, 0, \
_("Debug level"), NULL}, \