Skip to content

Commit da87e66

Browse files
committed
fix_LogCallback
1 parent ae527da commit da87e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cos_defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ typedef enum compress_type {
9090
} \
9191
{ \
9292
auto log_callback = CosSysConfig::GetLogCallback(); \
93-
if (log_callback) { \
93+
if (log_callback && level <= CosSysConfig::GetLogLevel()) { \
9494
std::string logstr = \
9595
LogUtil::FormatLog(level, "%s:%s(%d) " fmt "\n", __FILE__, __func__, \
9696
__LINE__, ##__VA_ARGS__); \

0 commit comments

Comments
 (0)