Do not print WDIAG log when syslog_level set to ERROR

This commit is contained in:
stdliu 2023-04-26 13:07:58 +00:00 committed by ob-robot
parent 4154d0df4b
commit 220e8fceac
2 changed files with 4 additions and 2 deletions

View File

@ -1138,7 +1138,9 @@ LOG_MOD_END(PL)
#define _LOG_USER_MSG(level, errcode, umsg, args...) \
do {\
OB_LOGGER.log_user_message(level, errcode, umsg, ##args);\
OB_LOGGER.log_message_fmt("", OB_LOG_NUM_LEVEL(OB_LOG_LEVEL_WARN), errcode, umsg, ##args);\
if (OB_LOG_NEED_TO_PRINT(WARN)) { \
OB_LOGGER.log_message_fmt("", OB_LOG_NUM_LEVEL(OB_LOG_LEVEL_WARN), errcode, umsg, ##args);\
} \
} while(0)
//

View File

@ -3666,7 +3666,7 @@ ObExprOperator *ObSysFunRawExpr::get_op()
}
}
if (OB_UNLIKELY(NULL == (op = ObOpRawExpr::get_op()))) {
LOG_ERROR_RET(OB_ERR_UNEXPECTED, "make function failed", K_(func_name));
LOG_WARN_RET(OB_ALLOCATE_MEMORY_FAILED, "make function failed", K_(func_name));
}
return op;
}