summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2009-07-30 23:08:42 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-31 13:11:32 -0700
commitacb06b282a64b2751d33424e4e833c0c7dcf87d7 (patch)
tree676d7d33ac33a34242d9db836669eb7627144937 /transport
parentb63f69cdf40ef5bd79abdcd641b3dcc4bcb3cb1a (diff)
client-protocol: log messages at WARNING loglevel when client_bind on privileged port fails.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 140 (use appropriate loglevel to log in case of failure to bind to privileged socket) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=140
Diffstat (limited to 'transport')
-rw-r--r--transport/ib-verbs/src/name.c2
-rw-r--r--transport/socket/src/name.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/transport/ib-verbs/src/name.c b/transport/ib-verbs/src/name.c
index 31ce5291d70..c9d6e51d8d5 100644
--- a/transport/ib-verbs/src/name.c
+++ b/transport/ib-verbs/src/name.c
@@ -418,7 +418,7 @@ client_bind (transport_t *this,
*sockaddr_len,
CLIENT_PORT_CEILING);
if (ret == -1) {
- gf_log (this->xl->name, GF_LOG_ERROR,
+ gf_log (this->xl->name, GF_LOG_WARNING,
"cannot bind inet socket (%d) to port "
"less than %d (%s)",
sock, CLIENT_PORT_CEILING, strerror (errno));
diff --git a/transport/socket/src/name.c b/transport/socket/src/name.c
index bb41c1cd092..83a97ed0414 100644
--- a/transport/socket/src/name.c
+++ b/transport/socket/src/name.c
@@ -415,7 +415,7 @@ client_bind (transport_t *this,
ret = af_inet_bind_to_port_lt_ceiling (sock, sockaddr,
*sockaddr_len, CLIENT_PORT_CEILING);
if (ret == -1) {
- gf_log (this->xl->name, GF_LOG_ERROR,
+ gf_log (this->xl->name, GF_LOG_WARNING,
"cannot bind inet socket (%d) to port less than %d (%s)",
sock, CLIENT_PORT_CEILING, strerror (errno));
ret = 0;