mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s3:winbind: Improve logging in winbindd.c
Signed-off-by: Pavel Filipenský <pfilipen@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
feb04d9971
commit
1852160ee3
@ -493,11 +493,10 @@ static struct tevent_req *process_request_send(
|
|||||||
cli_state->cmd_name = atable->cmd_name;
|
cli_state->cmd_name = atable->cmd_name;
|
||||||
cli_state->recv_fn = atable->recv_req;
|
cli_state->recv_fn = atable->recv_req;
|
||||||
|
|
||||||
DBG_DEBUG("process_request: "
|
DBG_NOTICE("[%s (%d)] Handling async request: %s\n",
|
||||||
"Handling async request %s(%d):%s\n",
|
cli_state->client_name,
|
||||||
cli_state->client_name,
|
(int)cli_state->pid,
|
||||||
(int)cli_state->pid,
|
cli_state->cmd_name);
|
||||||
cli_state->cmd_name);
|
|
||||||
|
|
||||||
subreq = atable->send_req(
|
subreq = atable->send_req(
|
||||||
state,
|
state,
|
||||||
@ -561,11 +560,11 @@ static void process_request_done(struct tevent_req *subreq)
|
|||||||
status = cli_state->recv_fn(subreq, cli_state->response);
|
status = cli_state->recv_fn(subreq, cli_state->response);
|
||||||
TALLOC_FREE(subreq);
|
TALLOC_FREE(subreq);
|
||||||
|
|
||||||
DBG_DEBUG("[%s(%d):%s]: %s\n",
|
DBG_NOTICE("[%s(%d):%s]: %s\n",
|
||||||
cli_state->client_name,
|
cli_state->client_name,
|
||||||
(int)cli_state->pid,
|
(int)cli_state->pid,
|
||||||
cli_state->cmd_name,
|
cli_state->cmd_name,
|
||||||
nt_errstr(status));
|
nt_errstr(status));
|
||||||
|
|
||||||
ok = NT_STATUS_IS_OK(status);
|
ok = NT_STATUS_IS_OK(status);
|
||||||
cli_state->response->result = ok ? WINBINDD_OK : WINBINDD_ERROR;
|
cli_state->response->result = ok ? WINBINDD_OK : WINBINDD_ERROR;
|
||||||
@ -668,14 +667,13 @@ static void new_connection(int listen_sock, bool privileged)
|
|||||||
|
|
||||||
if (sock == -1) {
|
if (sock == -1) {
|
||||||
if (errno != EINTR) {
|
if (errno != EINTR) {
|
||||||
DEBUG(0, ("Failed to accept socket - %s\n",
|
D_ERR("Failed to accept socket: %s\n", strerror(errno));
|
||||||
strerror(errno)));
|
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
smb_set_close_on_exec(sock);
|
smb_set_close_on_exec(sock);
|
||||||
|
|
||||||
DEBUG(6,("accepted socket %d\n", sock));
|
D_INFO("Accepted client socket %d\n", sock);
|
||||||
|
|
||||||
/* Create new connection structure */
|
/* Create new connection structure */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user