From 0806421ff2be104ed757610dc38c3b8e1d969cea Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 7 Feb 2018 11:43:22 +0530 Subject: core: move logs which are only developer relevant to DEBUG level Change-Id: I8b38e231b6160db8075f73773d4e7dc115a90d95 BUG: 1542829 Signed-off-by: Amar Tumballi --- libglusterfs/src/dict.c | 4 ++-- libglusterfs/src/graph.c | 2 +- libglusterfs/src/options.c | 2 +- libglusterfs/src/xlator.c | 2 +- rpc/xdr/src/glusterfs3.h | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c index d1a64c4a3a2..b4a97a9b68e 100644 --- a/libglusterfs/src/dict.c +++ b/libglusterfs/src/dict.c @@ -37,14 +37,14 @@ struct dict_cmp { #define VALIDATE_DATA_AND_LOG(data, type, key, ret_val) do { \ if (!data || !data->data) { \ - gf_msg_callingfn ("dict", GF_LOG_WARNING, EINVAL, \ + gf_msg_callingfn ("dict", GF_LOG_DEBUG, EINVAL, \ LG_MSG_INVALID_ARG, "data is NULL"); \ return ret_val; \ } \ /* Not of the asked type, or old version */ \ if ((data->data_type != type) && \ (data->data_type != GF_DATA_TYPE_STR_OLD)) { \ - gf_msg_callingfn ("dict", GF_LOG_INFO, EINVAL, \ + gf_msg_callingfn ("dict", GF_LOG_DEBUG, EINVAL, \ LG_MSG_INVALID_ARG, \ "key %s, %s type asked, has %s type", \ key, data_type_name[type], \ diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 738cd9688db..93dfc74338b 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -358,7 +358,7 @@ _log_if_unknown_option (dict_t *dict, char *key, data_t *value, void *data) found = xlator_volume_option_get (xl, key); if (!found) { - gf_msg (xl->name, GF_LOG_WARNING, 0, + gf_msg (xl->name, GF_LOG_DEBUG, 0, LG_MSG_XLATOR_OPTION_INVALID, "option '%s' is not recognized", key); } diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c index a0f04c772e8..ae32001fd0e 100644 --- a/libglusterfs/src/options.c +++ b/libglusterfs/src/options.c @@ -990,7 +990,7 @@ xl_opt_validate (dict_t *dict, char *key, data_t *value, void *data) stub->errstr = errstr; if (fnmatch (opt->key[0], key, FNM_NOESCAPE) != 0) { - gf_msg (xl->name, GF_LOG_WARNING, 0, LG_MSG_INVALID_ENTRY, + gf_msg (xl->name, GF_LOG_DEBUG, 0, LG_MSG_INVALID_ENTRY, "option '%s' is deprecated, preferred is '%s', " "continuing with correction", key, opt->key[0]); dict_set (dict, opt->key[0], value); diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c index b060d393730..9720f632b43 100644 --- a/libglusterfs/src/xlator.c +++ b/libglusterfs/src/xlator.c @@ -317,7 +317,7 @@ int xlator_dynload_newway (xlator_t *xl) xlapi = dlsym (handle, "xlator_api"); if (!xlapi) { - gf_msg ("xlator", GF_LOG_INFO, 0, LG_MSG_DLSYM_ERROR, + gf_msg ("xlator", GF_LOG_DEBUG, 0, LG_MSG_DLSYM_ERROR, "dlsym(xlator_api) on %s. " "Fall back to old symbols", dlerror ()); /* This case is not an error for now, so allow it diff --git a/rpc/xdr/src/glusterfs3.h b/rpc/xdr/src/glusterfs3.h index 550b9a3ceb8..4f83856d27f 100644 --- a/rpc/xdr/src/glusterfs3.h +++ b/rpc/xdr/src/glusterfs3.h @@ -732,7 +732,7 @@ dict_to_xdr (dict_t *this, gfx_dict *dict) dpair->value->len; /* Change this to INFO, after taking the above down */ - gf_msg ("dict", GF_LOG_INFO, EINVAL, + gf_msg ("dict", GF_LOG_DEBUG, EINVAL, LG_MSG_DICT_SERIAL_FAILED, "key '%s' is would not be sent on wire in future", dpair->key); -- cgit