Skip to content

Commit

Permalink
Fixed mismatched h2 LogLevelType
Browse files Browse the repository at this point in the history
  • Loading branch information
graham63 committed Mar 7, 2023
1 parent 9d33356 commit 953ebf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/lbann/utils/logging.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ h2::Logger& get(LBANN_Logger_ID id);
#define LBANN_DEBUG(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::DEBUG, __VA_ARGS__)
#define LBANN_INFO(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::INFO, __VA_ARGS__)
#define LBANN_WARN(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::WARN, __VA_ARGS__)
#define LBANN_ERR(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::ERR, __VA_ARGS__)
#define LBANN_CRIT(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::CRIT, __VA_ARGS__)
#define LBANN_ERR(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::ERROR, __VA_ARGS__)
#define LBANN_CRIT(logger_id, ...) LBANN_LOG(logger_id, ::h2::Logger::LogLevelType::CRITICAL, __VA_ARGS__)

// Run time
#define LBANN_RT_TRACE(...) LBANN_TRACE(::lbann::logging::LBANN_Logger_ID::LOG_RT, __VA_ARGS__)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup_loggers()
{
logger_vec.insert(logger_vec.end(), {
&io_logger, &rt_logger, &train_logger });
h2::setup_levels(logger_vec, "TEST_LOG_LEVEL");
h2::setup_levels(logger_vec, "LBANN_LOG_LEVEL");
}

char const* logger_id_str(LBANN_Logger_ID id)
Expand Down

0 comments on commit 953ebf8

Please sign in to comment.