diff options
author | Jeremy Allison <jra@samba.org> | 2010-11-13 20:28:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-11-14 04:39:05 +0000 |
commit | 781c4aabb87e63df77c76a360b6ed5f6a20e6d58 (patch) | |
tree | e53eb195b8116ab29b73c34c3f00474b9c137d0c /source3/lib/messages.c | |
parent | 7cb0f95bf28c24c45955d6df52f505019341ef31 (diff) | |
download | samba-781c4aabb87e63df77c76a360b6ed5f6a20e6d58.tar.gz samba-781c4aabb87e63df77c76a360b6ed5f6a20e6d58.tar.bz2 samba-781c4aabb87e63df77c76a360b6ed5f6a20e6d58.zip |
Move error reporting of messaging context creation fail into
the daemons themselves. Allows client utilities to silently
fail to create a messaging context due to access denied on the
messaging tdb (which I need for the following patch).
Jeremy.
Diffstat (limited to 'source3/lib/messages.c')
-rw-r--r-- | source3/lib/messages.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 11dc931f0f..41f67d07db 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -194,7 +194,7 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, status = messaging_tdb_init(ctx, ctx, &ctx->local); if (!NT_STATUS_IS_OK(status)) { - DEBUG(0, ("messaging_tdb_init failed: %s\n", + DEBUG(2, ("messaging_tdb_init failed: %s\n", nt_errstr(status))); TALLOC_FREE(ctx); return NULL; @@ -205,7 +205,7 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, status = messaging_ctdbd_init(ctx, ctx, &ctx->remote); if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("messaging_ctdb_init failed: %s\n", + DEBUG(2, ("messaging_ctdb_init failed: %s\n", nt_errstr(status))); TALLOC_FREE(ctx); return NULL; |