Skip to content

Commit

Permalink
Fix cast to compile against glog 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed May 23, 2024
1 parent 0755f5a commit fb7b95f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/mrc/_pymrc/src/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ void log(const std::string& msg, int py_level, const std::string& filename, int
LOG(WARNING) << "Log called prior to calling init_logging, initialized with defaults";
}

google::LogMessage(filename.c_str(), line, static_cast<int>(py_level_to_mrc(py_level))).stream() << msg;
google::LogMessage(filename.c_str(), line, static_cast<google::LogSeverity>(py_level_to_mrc(py_level))).stream()
<< msg;
}

} // namespace mrc::pymrc

0 comments on commit fb7b95f

Please sign in to comment.