Do not print WDIAG log when syslog_level set to ERROR
This commit is contained in:
		
							
								
								
									
										2
									
								
								deps/oblib/src/lib/oblog/ob_log_module.h
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								deps/oblib/src/lib/oblog/ob_log_module.h
									
									
									
									
										vendored
									
									
								
							@ -1138,7 +1138,9 @@ LOG_MOD_END(PL)
 | 
				
			|||||||
#define _LOG_USER_MSG(level, errcode, umsg, args...)                      \
 | 
					#define _LOG_USER_MSG(level, errcode, umsg, args...)                      \
 | 
				
			||||||
  do {\
 | 
					  do {\
 | 
				
			||||||
    OB_LOGGER.log_user_message(level, errcode, umsg, ##args);\
 | 
					    OB_LOGGER.log_user_message(level, 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);\
 | 
					      OB_LOGGER.log_message_fmt("", OB_LOG_NUM_LEVEL(OB_LOG_LEVEL_WARN), errcode, umsg, ##args);\
 | 
				
			||||||
 | 
					    } \
 | 
				
			||||||
  } while(0)
 | 
					  } while(0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
 | 
				
			|||||||
@ -3666,7 +3666,7 @@ ObExprOperator *ObSysFunRawExpr::get_op()
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (OB_UNLIKELY(NULL == (op = ObOpRawExpr::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;
 | 
					  return op;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user