summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
authorAnand V. Avati <avati@amp.gluster.com>2009-04-28 15:10:38 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-04-28 15:10:38 +0530
commitd2ed893e3a526506ef302281d6bc936e6219063d (patch)
treee5b4c40e3a5e152bcf12354fe8626dc93230385b /transport
parent702affac485649f9509b1d6912e1a7737dbb23ca (diff)
socket transport logging cleanup
Diffstat (limited to 'transport')
-rw-r--r--transport/socket/src/socket.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c
index fa6b10e..7bb32a5 100644
--- a/transport/socket/src/socket.c
+++ b/transport/socket/src/socket.c
@@ -86,7 +86,7 @@ __socket_rwv (transport_t *this, struct iovec *vector, int count,
if (ret == 0) {
/* Mostly due to 'umount' in client */
- gf_log (this->xl->name, GF_LOG_DEBUG,
+ gf_log (this->xl->name, GF_LOG_TRACE,
"EOF from peer %s", this->peerinfo.identifier);
opcount = -1;
errno = ENOTCONN;
@@ -97,7 +97,7 @@ __socket_rwv (transport_t *this, struct iovec *vector, int count,
if (errno == EINTR)
continue;
- gf_log (this->xl->name, GF_LOG_DEBUG,
+ gf_log (this->xl->name, GF_LOG_TRACE,
"%s failed (%s)", write ? "writev" : "readv",
strerror (errno));
opcount = -1;
@@ -555,7 +555,7 @@ __socket_proto_state_machine (transport_t *this)
}
if (ret == -1) {
- gf_log (this->xl->name, GF_LOG_DEBUG,
+ gf_log (this->xl->name, GF_LOG_TRACE,
"read (%s) in state %d (%s)",
strerror (errno),
SOCKET_PROTO_STATE_HEADER_COMING,
@@ -739,7 +739,8 @@ socket_connect_finish (transport_t *this)
if (ret == -1 && errno != EINPROGRESS) {
if (!priv->connect_finish_log) {
gf_log (this->xl->name, GF_LOG_ERROR,
- "connection failed (%s)",
+ "connection to %s failed (%s)",
+ this->peerinfo.identifier,
strerror (errno));
priv->connect_finish_log = 1;
}
@@ -961,7 +962,7 @@ socket_connect (transport_t *this)
pthread_mutex_unlock (&priv->lock);
if (sock != -1) {
- gf_log (this->xl->name, GF_LOG_DEBUG,
+ gf_log (this->xl->name, GF_LOG_TRACE,
"connect () called on transport already connected");
ret = 0;
goto err;