We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d2a5f7 + c8de3cc commit b60b86dCopy full SHA for b60b86d
include/cos_defines.h
@@ -90,7 +90,7 @@ typedef enum compress_type {
90
} \
91
{ \
92
auto log_callback = CosSysConfig::GetLogCallback(); \
93
- if (log_callback) { \
+ if (log_callback && level <= CosSysConfig::GetLogLevel()) { \
94
std::string logstr = \
95
LogUtil::FormatLog(level, "%s:%s(%d) " fmt "\n", __FILE__, __func__, \
96
__LINE__, ##__VA_ARGS__); \
0 commit comments