summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2014-02-18 16:47:09 +0530
committerVijay Bellur <vbellur@redhat.com>2014-02-20 22:10:43 -0800
commit47e6c202fea13458f62e397ab894f740fdced5c8 (patch)
tree1d16285ce50283630df5e3f65692a42c259af8fd /rpc
parentf1f91f8016e468718df9c581662f8417a1fb999c (diff)
rpc/socket: Avoid excessive INFO logs when SSL is not configured.
Change-Id: I7f4dd2ae4225c8d3783417d0c3d415178f04c0da BUG: 1067011 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/7031 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-transport/socket/src/socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c
index e3d97f7c839..a33e02ad834 100644
--- a/rpc/rpc-transport/socket/src/socket.c
+++ b/rpc/rpc-transport/socket/src/socket.c
@@ -3570,7 +3570,8 @@ socket_init (rpc_transport_t *this)
}
priv->ssl_ca_list = gf_strdup(priv->ssl_ca_list);
- gf_log(this->name,GF_LOG_INFO,"SSL support is %s",
+ gf_log(this->name, priv->ssl_enabled ? GF_LOG_INFO: GF_LOG_DEBUG,
+ "SSL support is %s",
priv->ssl_enabled ? "ENABLED" : "NOT enabled");
/*
* This might get overridden temporarily in socket_connect (q.v.)
@@ -3585,7 +3586,8 @@ socket_init (rpc_transport_t *this)
"invalid value given for own-thread boolean");
}
}
- gf_log(this->name,GF_LOG_INFO,"using %s polling thread",
+ gf_log(this->name, priv->own_thread ? GF_LOG_INFO: GF_LOG_DEBUG,
+ "using %s polling thread",
priv->own_thread ? "private" : "system");
if (priv->use_ssl) {