Skip to content

Commit 953ebf8

Browse files
committed
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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)