This commit is contained in:
zhouhuang 2024-12-09 09:44:14 +08:00
parent eb4a27fbe7
commit 2dbd865dd2

View File

@ -39,7 +39,8 @@ static const char* CATEGORY[] = {
void Logger::Log(const size_t level, const std::string& msg)
{
if (level >= logLevel) {
if (level >= logLevel)
{
#if 0
std::time_t tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
const auto category = CATEGORY[std::min(level, sizeof(CATEGORY) / sizeof(CATEGORY[0]))];