fix log level use <=
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m0s
linux-x64-gcc / linux-gcc (push) Failing after 51s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 58s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m5s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m4s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m6s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m3s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m16s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m24s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m18s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m12s

This commit is contained in:
tqcq 2023-12-11 11:31:44 +08:00
parent a4353b7ec7
commit d6627c3aa8
2 changed files with 22 additions and 19 deletions

3
.gitignore vendored
View File

@ -49,3 +49,6 @@ _deps
.idea/
cmake-build-*
build/
.cache/
compile_commands.json

View File

@ -9,43 +9,43 @@
namespace tqcq {
#define _ULOG(level, ...) ::tqcq::Logger::GetInstance().Log(level, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#define _ULOG(level, ...) ::tqcq::Logger::GetInstance().Log(level, __FILE__, __FUNCTION__, __LINE__, __VA_ARGS__)
#define ULOG_SET_STRIPPED_PREFIX_LEN(len) ::tqcq::Logger::GetInstance().SetStrippedPrefixLen(len)
#if ULOG_LEVEL >= ULOG_LEVEL_TRACE
# define ULOG_TRACE(...) _ULOG(ULOG_LEVEL_TRACE, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_TRACE
#define ULOG_TRACE(...) _ULOG(ULOG_LEVEL_TRACE, __VA_ARGS__)
#else
# define ULOG_TRACE(...) ((void)0)
#define ULOG_TRACE(...) ((void) 0)
#endif
#if ULOG_LEVEL >= ULOG_LEVEL_DEBUG
# define ULOG_DEBUG(...) _ULOG(ULOG_LEVEL_DEBUG, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_DEBUG
#define ULOG_DEBUG(...) _ULOG(ULOG_LEVEL_DEBUG, __VA_ARGS__)
#else
# define ULOG_DEBUG(...) ((void)0)
#define ULOG_DEBUG(...) ((void) 0)
#endif
#if ULOG_LEVEL >= ULOG_LEVEL_INFO
# define ULOG_INFO(...) _ULOG(ULOG_LEVEL_INFO, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_INFO
#define ULOG_INFO(...) _ULOG(ULOG_LEVEL_INFO, __VA_ARGS__)
#else
# define ULOG_INFO(...) ((void)0)
#define ULOG_INFO(...) ((void) 0)
#endif
#if ULOG_LEVEL >= ULOG_LEVEL_WARN
# define ULOG_WARN(...) _ULOG(ULOG_LEVEL_WARN, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_WARN
#define ULOG_WARN(...) _ULOG(ULOG_LEVEL_WARN, __VA_ARGS__)
#else
# define ULOG_WARN(...) ((void)0)
#define ULOG_WARN(...) ((void) 0)
#endif
#if ULOG_LEVEL >= ULOG_LEVEL_ERROR
# define ULOG_ERROR(...) _ULOG(ULOG_LEVEL_ERROR, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_ERROR
#define ULOG_ERROR(...) _ULOG(ULOG_LEVEL_ERROR, __VA_ARGS__)
#else
# define ULOG_ERROR(...) ((void)0)
#define ULOG_ERROR(...) ((void) 0)
#endif
#if ULOG_LEVEL >= ULOG_LEVEL_FATAL
# define ULOG_FATAL(...) _ULOG(ULOG_LEVEL_FATAL, __VA_ARGS__)
#if ULOG_LEVEL <= ULOG_LEVEL_FATAL
#define ULOG_FATAL(...) _ULOG(ULOG_LEVEL_FATAL, __VA_ARGS__)
#else
# define ULOG_FATAL(...) ((void)0)
#define ULOG_FATAL(...) ((void) 0)
#endif
// class Log {};