diff options
| author | Pranith Kumar K <pranithk@gluster.com> | 2011-04-12 01:21:57 +0000 | 
|---|---|---|
| committer | Anand Avati <avati@gluster.com> | 2011-04-13 01:04:11 -0700 | 
| commit | 7cf0dbcd300f554985ebde4759511c048927c53a (patch) | |
| tree | a43cb3a958e4d27e01a14501a877467fb953b3f1 | |
| parent | 4e928f1d9a9cbbf18d3df3481f1d985f12a9c5ba (diff) | |
mgmt/glusterd: Remove excessive INFO logs
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
| -rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 4 | ||||
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 9 | 
2 files changed, 10 insertions, 3 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index f85249b152f..732a89062d7 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -1588,6 +1588,10 @@ rpc_clnt_transport_unix_options_build (dict_t **options, char *filepath)          if (ret)                  goto out; +        ret = dict_set_str (dict, "transport.socket.keepalive", "off"); +        if (ret) +                goto out; +          *options = dict;  out:          if (ret) { diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 0ee0206fa5e..3d43899640e 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -2421,7 +2421,7 @@ glusterd_friend_find_by_uuid (uuid_t uuid,          list_for_each_entry (entry, &priv->peers, uuid_list) {                  if (!uuid_compare (entry->uuid, uuid)) { -                        gf_log ("glusterd", GF_LOG_INFO, +                        gf_log ("glusterd", GF_LOG_DEBUG,                                   "Friend found... state: %s",                          glusterd_friend_sm_state_name_get (entry->state.state));                          *peerinfo = entry; @@ -2429,6 +2429,8 @@ glusterd_friend_find_by_uuid (uuid_t uuid,                  }          } +        gf_log ("glusterd", GF_LOG_DEBUG, "Friend with uuid: %s, not found", +                uuid_utoa (uuid));          return ret;  } @@ -2460,7 +2462,7 @@ glusterd_friend_find_by_hostname (const char *hoststr,                  if (!strncmp (entry->hostname, hoststr,                                1024)) { -                        gf_log ("glusterd", GF_LOG_INFO, +                        gf_log ("glusterd", GF_LOG_DEBUG,                                   "Friend %s found.. state: %d", hoststr,                                    entry->state.state);                          *peerinfo = entry; @@ -2499,7 +2501,7 @@ glusterd_friend_find_by_hostname (const char *hoststr,                          if (!strncmp (entry->hostname, host,                              1024) || !strncmp (entry->hostname,hname,                              1024)) { -                                gf_log ("glusterd", GF_LOG_INFO, +                                gf_log ("glusterd", GF_LOG_DEBUG,                                          "Friend %s found.. state: %d",                                          hoststr, entry->state.state);                                  *peerinfo = entry; @@ -2510,6 +2512,7 @@ glusterd_friend_find_by_hostname (const char *hoststr,          }  out: +        gf_log ("glusterd", GF_LOG_DEBUG, "Unable to find friend: %s", hoststr);          if (addr)                  freeaddrinfo (addr);          return -1;  | 
