Skip to content

Commit c8de3cc

Browse files
committed
Merge branch 'dev/dev_fix_GetLogCallback' into 'master' (merge request !26)
dev/dev_fix_GetLogCallback
2 parents b19b335 + 5cb2f62 commit c8de3cc

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)