Allow setting the RAY_BACKEND_LOG_LEVEL to trace. (#12012)

This commit is contained in:
dHannasch 2020-11-17 14:10:23 -07:00 committed by GitHub
parent f0dcf01807
commit 010e6cef3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,9 @@ void RayLog::StartRayLog(const std::string &app_name, RayLogLevel severity_thres
if (var_value != nullptr) { if (var_value != nullptr) {
std::string data = var_value; std::string data = var_value;
std::transform(data.begin(), data.end(), data.begin(), ::tolower); std::transform(data.begin(), data.end(), data.begin(), ::tolower);
if (data == "debug") { if (data == "trace") {
severity_threshold = RayLogLevel::TRACE;
} else if (data == "debug") {
severity_threshold = RayLogLevel::DEBUG; severity_threshold = RayLogLevel::DEBUG;
} else if (data == "info") { } else if (data == "info") {
severity_threshold = RayLogLevel::INFO; severity_threshold = RayLogLevel::INFO;