From c528a38170f383ca95b94bacf872a35b740b27db Mon Sep 17 00:00:00 2001 From: BePPPower <43782773+BePPPower@users.noreply.github.com> Date: Tue, 10 May 2022 20:53:45 +0800 Subject: [PATCH] [refactor] delete OLAP_LOG_WARNING related macro definition (#9484) Co-authored-by: BePPPower --- be/src/olap/utils.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/be/src/olap/utils.h b/be/src/olap/utils.h index 9e3c18fabb1372..612d3ac455fa29 100644 --- a/be/src/olap/utils.h +++ b/be/src/olap/utils.h @@ -281,29 +281,6 @@ bool valid_datetime(const std::string& value_str); bool valid_bool(const std::string& value_str); -#define OLAP_LOG_WRITE(level, fmt, arg...) \ - do { \ - char buf[10240] = {0}; \ - write_log_info(buf, 10240, fmt, ##arg); \ - LOG(level) << buf; \ - } while (0) - -#define OLAP_VLOG_WRITE(level, fmt, arg...) \ - do { \ - if (OLAP_UNLIKELY(VLOG_IS_ON(level))) { \ - char buf[10240] = {0}; \ - write_log_info(buf, 10240, fmt, ##arg); \ - VLOG(level) << buf; \ - } \ - } while (0) - -// Log define for non-network usage -// 屏蔽DEBUG和TRACE日志以满足性能测试需求 -#define OLAP_LOG_WARNING(fmt, arg...) OLAP_LOG_WRITE(WARNING, fmt, ##arg) -#define OLAP_LOG_NOTICE_DIRECT_SOCK(fmt, arg...) OLAP_LOG_WRITE(INFO, fmt, ##arg) -#define OLAP_LOG_WARNING_SOCK(fmt, arg...) OLAP_LOG_WRITE(WARNING, fmt, ##arg) -#define OLAP_LOG_SETBASIC(type, fmt, arg...) - // Util used to get string name of thrift enum item #define EnumToString(enum_type, index, out) \ do { \