From 6beed5a2df53203bf22f64894d9d41f8de47f23b Mon Sep 17 00:00:00 2001 From: mehrdadn Date: Fri, 24 Jul 2020 11:15:00 -0700 Subject: [PATCH] Fix ERROR logging not being printed to standard error (#9633) Co-authored-by: Mehrdad --- src/ray/util/logging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ray/util/logging.cc b/src/ray/util/logging.cc index 5b5b1eff1..cb3b06f5c 100644 --- a/src/ray/util/logging.cc +++ b/src/ray/util/logging.cc @@ -205,9 +205,9 @@ void RayLog::StartRayLog(const std::string &app_name, RayLogLevel severity_thres std::ios_base::app | std::ios_base::binary); } for (int lvl = 0; lvl < NUM_SEVERITIES; ++lvl) { - google::SetStderrLogging(lvl); google::base::SetLogger(lvl, &stream_logger_singleton); } + google::SetStderrLogging(GetMappedSeverity(RayLogLevel::ERROR)); #endif }