fix
Some checks failed
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 50s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m0s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m3s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m5s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 56s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m11s
linux-x64-gcc / linux-gcc (push) Failing after 47s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m22s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m3s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m16s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m28s

This commit is contained in:
tqcq 2023-12-11 13:28:40 +08:00
parent 214aa61f31
commit df691c16f1

View File

@ -28,7 +28,7 @@ Logger::Log(int32_t level, const char *file, const char *func, int32_t line, con
std::string pattern = "[{}] {}:{}@{} msg: {}"; std::string pattern = "[{}] {}:{}@{} msg: {}";
// auto add CR // auto add CR
bool need_append_line_break = !msg || msg[strlen(msg) - 1] != '\n'; bool need_append_line_break = !msg || *msg == '\0' || msg[strlen(msg) - 1] != '\n';
if (need_append_line_break) { if (need_append_line_break) {
pattern.append(1, '\n'); pattern.append(1, '\n');
} }