summaryrefslogtreecommitdiff
path: root/src/monitor
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-11-19 13:10:39 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-11-26 20:58:41 +0100
commit3d97f2645356adca1e9e6eeca4f735a1acbed15d (patch)
tree1a70b7ac1d2b3a1744309f12cb5cfa7ae1087a12 /src/monitor
parentd5351fd908e78c7639c839853c737b96e048f95a (diff)
downloadsssd-3d97f2645356adca1e9e6eeca4f735a1acbed15d.tar.gz
sssd-3d97f2645356adca1e9e6eeca4f735a1acbed15d.tar.bz2
sssd-3d97f2645356adca1e9e6eeca4f735a1acbed15d.zip
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
Diffstat (limited to 'src/monitor')
-rw-r--r--src/monitor/monitor.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 40f1f56c..71f91572 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2752,12 +2752,6 @@ int main(int argc, const char *argv[])
/* Parse config file, fail if cannot be done */
ret = load_configuration(tmp_ctx, config_file, &monitor);
if (ret != EOK) {
- /* if debug level has not been set, set it manually to make these
- * critical failures visible */
- if (debug_level == SSSDBG_UNRESOLVED) {
- debug_level = SSSDBG_MASK_ALL;
- }
-
if (ret == EPERM) {
DEBUG(1, ("Cannot read configuration file %s\n", config_file));
sss_log(SSS_LOG_ALERT,