Skip to content

Commit

Permalink
Fix Google log directory again (ray-project#9063)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehrdadn committed Jun 22, 2020
1 parent 2154f38 commit 275da2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ray/util/logging.cc
Expand Up @@ -171,14 +171,15 @@ void RayLog::StartRayLog(const std::string &app_name, RayLogLevel severity_thres
app_name_without_path = app_file_name;
}
}
google::SetLogFilenameExtension(app_name_without_path.c_str());
google::SetLogFilenameExtension((app_name_without_path + ".log.").c_str());
}
for (int lvl = 0; lvl < NUM_SEVERITIES; ++lvl) {
if (log_dir_.empty()) {
google::SetStderrLogging(lvl);
google::base::SetLogger(lvl, &stdout_logger_singleton);
} else {
google::SetLogDestination(lvl, dir_ends_with_slash.c_str());
std::string prefix = dir_ends_with_slash + LogSeverityNames[lvl] + '.';
google::SetLogDestination(lvl, prefix.c_str());
}
}
#endif
Expand Down

0 comments on commit 275da2e

Please sign in to comment.