diff options
author | Ariel Barria <olivares73@hotmail.com> | 2013-03-27 16:04:06 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-02 17:19:24 +0200 |
commit | 203c71b7de626eea39e1b4134a4f2ecf6a8a6f87 (patch) | |
tree | 642bfd6ac1fc6a1effdc7acc3ef5598696797fe5 /src | |
parent | 9acfb09f7969a69f58bd45c856b01700541853ca (diff) | |
download | sssd-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
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor/monitor.c | 4 |
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; } |