summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-10-07 07:43:53 -0400
committerSimo Sorce <idra@samba.org>2008-10-07 07:43:53 -0400
commita53047557987563691b2ab902fe6f5103707ff8a (patch)
tree801e1f814f76f578476b825a8276f29f5c662a23 /server/nss/nsssrv.c
parentb4cd915ef70f74427d71cde238db56a1876b5b06 (diff)
downloadsssd-a53047557987563691b2ab902fe6f5103707ff8a.tar.gz
sssd-a53047557987563691b2ab902fe6f5103707ff8a.tar.bz2
sssd-a53047557987563691b2ab902fe6f5103707ff8a.zip
Add primitive debugging capabilities.
So far debug goes to stderr so sssd need to be run int interactive mode (-i option)
Diffstat (limited to 'server/nss/nsssrv.c')
-rw-r--r--server/nss/nsssrv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/nss/nsssrv.c b/server/nss/nsssrv.c
index 176da520..5ade80ec 100644
--- a/server/nss/nsssrv.c
+++ b/server/nss/nsssrv.c
@@ -27,6 +27,7 @@
#include <sys/un.h>
#include <string.h>
#include <sys/time.h>
+#include <errno.h>
#include "talloc.h"
#include "events.h"
#include "util/util.h"
@@ -167,7 +168,7 @@ static void accept_fd_handler(struct event_context *ev,
len = sizeof(cctx->addr);
cctx->cfd = accept(nctx->lfd, (struct sockaddr *)&cctx->addr, &len);
if (cctx->cfd == -1) {
- DEBUG(1, ("Accept failed [%s]", strerror(errno)));
+ DEBUG(0, ("Accept failed [%s]", strerror(errno)));
talloc_free(cctx);
return;
}
@@ -177,11 +178,13 @@ static void accept_fd_handler(struct event_context *ev,
if (!cctx->cfde) {
close(cctx->cfd);
talloc_free(cctx);
- DEBUG(1, ("Failed to queue client handler\n"));
+ DEBUG(0, ("Failed to queue client handler\n"));
}
talloc_set_destructor(cctx, client_destructor);
+ DEBUG(2, ("Client connected!\n"));
+
return;
}