From 010e6cef3f074de1096b2b4a7778dcc4f40bcaa9 Mon Sep 17 00:00:00 2001 From: dHannasch Date: Tue, 17 Nov 2020 14:10:23 -0700 Subject: [PATCH] Allow setting the RAY_BACKEND_LOG_LEVEL to trace. (#12012) --- src/ray/util/logging.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ray/util/logging.cc b/src/ray/util/logging.cc index 578cc4049..e62615cd1 100644 --- a/src/ray/util/logging.cc +++ b/src/ray/util/logging.cc @@ -254,7 +254,9 @@ void RayLog::StartRayLog(const std::string &app_name, RayLogLevel severity_thres if (var_value != nullptr) { std::string data = var_value; 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; } else if (data == "info") { severity_threshold = RayLogLevel::INFO;