Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 953ebf8

Browse files
committedMar 7, 2023
Fixed mismatched h2 LogLevelType
1 parent 9d33356 commit 953ebf8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎include/lbann/utils/logging.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ h2::Logger& get(LBANN_Logger_ID id);
6969
#define LBANN_DEBUG(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::DEBUG, __VA_ARGS__)
7070
#define LBANN_INFO(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::INFO, __VA_ARGS__)
7171
#define LBANN_WARN(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::WARN, __VA_ARGS__)
72-
#define LBANN_ERR(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::ERR, __VA_ARGS__)
73-
#define LBANN_CRIT(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::CRIT, __VA_ARGS__)
72+
#define LBANN_ERR(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::ERROR, __VA_ARGS__)
73+
#define LBANN_CRIT(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::CRITICAL, __VA_ARGS__)
7474

7575
// Run time
7676
#define LBANN_RT_TRACE(...) LBANN_TRACE(::lbann::logging::LBANN_Logger_ID::LOG_RT, __VA_ARGS__)

‎src/utils/logging.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ void setup_loggers()
4444
{
4545
logger_vec.insert(logger_vec.end(), {
4646
&io_logger, &rt_logger, &train_logger });
47-
h2::setup_levels(logger_vec, "TEST_LOG_LEVEL");
47+
h2::setup_levels(logger_vec, "LBANN_LOG_LEVEL");
4848
}
4949

5050
char const* logger_id_str(LBANN_Logger_ID id)

0 commit comments

Comments
 (0)
Please sign in to comment.