[SSSD] [PATCH] Change the log level of two DEBUG messages in check_domain_ranges
Jakub Hrozek
jhrozek at redhat.com
Thu Oct 4 04:26:57 UTC 2012
https://fedorahosted.org/sssd/ticket/1562
-------------- next part --------------
>From 2b5a1c30db990c4d7524ef8d632ab3114d03b44d Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Wed, 3 Oct 2012 21:57:45 +0200
Subject: [PATCH] Change the log level of two DEBUG messages in
check_domain_ranges
https://fedorahosted.org/sssd/ticket/1562
---
src/monitor/monitor.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index e8c987c3cfa0f12bd1b2c286cd17ddb7a15b7112..20a919bbe837ebfc6f7026802fa5e10014c83192 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -744,8 +744,8 @@ static int check_domain_ranges(struct sss_domain_info *domains)
while (dom) {
other = dom->next;
if (dom->id_max && dom->id_min > dom->id_max) {
- DEBUG(1, ("Domain '%s' does not have a valid ID range\n",
- dom->name));
+ DEBUG(SSSDBG_CRIT_FAILURE,
+ ("Domain '%s' does not have a valid ID range\n", dom->name));
return EINVAL;
}
@@ -754,8 +754,9 @@ static int check_domain_ranges(struct sss_domain_info *domains)
id_max = MIN((dom->id_max ? dom->id_max : UINT32_MAX),
(other->id_max ? other->id_max : UINT32_MAX));
if (id_min <= id_max) {
- DEBUG(1, ("Domains '%s' and '%s' overlap in range %u - %u\n",
- dom->name, other->name, id_min, id_max));
+ DEBUG(SSSDBG_MINOR_FAILURE,
+ ("Domains '%s' and '%s' overlap in range %u - %u\n",
+ dom->name, other->name, id_min, id_max));
}
other = other->next;
}
--
1.7.11.4
More information about the sssd-devel
mailing list