Skip to content

Commit

Permalink
[refactor] delete OLAP_LOG_WARNING related macro definition (apache#9484
Browse files Browse the repository at this point in the history
)

Co-authored-by: BePPPower <fangtiewei@selectdb.com>
  • Loading branch information
2 people authored and jianghaochen committed May 13, 2022
1 parent 3b3e65c commit 6fdba37
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions be/src/olap/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand Down

0 comments on commit 6fdba37

Please sign in to comment.