core: move "dict is NULL" logs to DEBUG log level
Too many logs get printed if dict_ref() and dict_unref() are passed NULL pointer. fixes: bz#1671213 Change-Id: I18afd849d64318f68baa7b549ee310dac0e1e786 Signed-off-by: Milind Changire <mchangir@redhat.com>
This commit is contained in:
parent
2fb445babd
commit
62a61c548d
@ -728,7 +728,7 @@ dict_unref(dict_t *this)
|
||||
uint64_t ref = 0;
|
||||
|
||||
if (!this) {
|
||||
gf_msg_callingfn("dict", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG,
|
||||
gf_msg_callingfn("dict", GF_LOG_DEBUG, EINVAL, LG_MSG_INVALID_ARG,
|
||||
"dict is NULL");
|
||||
return;
|
||||
}
|
||||
@ -743,7 +743,7 @@ dict_t *
|
||||
dict_ref(dict_t *this)
|
||||
{
|
||||
if (!this) {
|
||||
gf_msg_callingfn("dict", GF_LOG_WARNING, EINVAL, LG_MSG_INVALID_ARG,
|
||||
gf_msg_callingfn("dict", GF_LOG_DEBUG, EINVAL, LG_MSG_INVALID_ARG,
|
||||
"dict is NULL");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user