summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriel Barria <olivares73@hotmail.com>2013-03-27 16:04:06 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-04-02 17:19:24 +0200
commit203c71b7de626eea39e1b4134a4f2ecf6a8a6f87 (patch)
tree642bfd6ac1fc6a1effdc7acc3ef5598696797fe5
parent9acfb09f7969a69f58bd45c856b01700541853ca (diff)
downloadsssd-203c71b7de626eea39e1b4134a4f2ecf6a8a6f87.tar.gz
sssd-203c71b7de626eea39e1b4134a4f2ecf6a8a6f87.tar.bz2
sssd-203c71b7de626eea39e1b4134a4f2ecf6a8a6f87.zip
Improve syslog message when configuration cannot be loaded
https://fedorahosted.org/sssd/ticket/1414 Error code was added and strerror(errno) to show cause in sss_log
-rw-r--r--src/monitor/monitor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index c7d6d3e1..7a543908 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -2775,7 +2775,9 @@ int main(int argc, const char *argv[])
} else {
DEBUG(SSSDBG_CRIT_FAILURE, ("Error loading configuration database: "
"[%d]: %s\n", ret, strerror(ret)));
- sss_log(SSS_LOG_ALERT, "Cannot load configuration database");
+ sss_log(SSS_LOG_ALERT,
+ "Cannot load configuration database: [%d]: %s",
+ ret, strerror(ret));
}
return 4;
}