diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2015-07-11 12:27:02 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-07-13 10:59:27 -0700 |
commit | a53482df76ad2527aa7a91b5a10c64d26477d1f2 (patch) | |
tree | 5636f6dc4a30f8e4c8b622c035927694c0084996 | |
parent | 67a53554ed75081612b56a5658fd569dc5aaa785 (diff) |
rpcsvc: add request's address in log
This helps in identifying the remote endpoint whose request arrived at
an non-privileged port.
Change-Id: Ie58155e00229cfcbd0ca5221d79e2e90efb3e2b3
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
Reviewed-on: http://review.gluster.org/11631
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
-rw-r--r-- | rpc/rpc-lib/src/rpcsvc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-lib/src/rpcsvc.c b/rpc/rpc-lib/src/rpcsvc.c index d151d541cee..c01836ef6f5 100644 --- a/rpc/rpc-lib/src/rpcsvc.c +++ b/rpc/rpc-lib/src/rpcsvc.c @@ -630,7 +630,8 @@ rpcsvc_handle_rpc_call (rpcsvc_t *svc, rpc_transport_t *trans, /* Non-privileged user, fail request */ gf_log (GF_RPCSVC, GF_LOG_ERROR, "Request received from non-" - "privileged port. Failing request"); + "privileged port. Failing request for %s.", + req->trans->peerinfo.identifier); rpcsvc_request_destroy (req); return -1; } |