mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
Allow setting the RAY_BACKEND_LOG_LEVEL to trace. (#12012)
This commit is contained in:
parent
f0dcf01807
commit
010e6cef3f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue