ray/thirdparty/patches/glog-suffix-log.patch
Lingxuan Zuo 27e1f513e3
[Log] make glog flush and RAY_LOG thread-safe (#11002)
* make glog flush and RAY_LOG thread-safe

* dump error log to console

* mapping all levels to destination

* hack glog for exporting message to stdout if no base name given

* patch lint

* use stdout logger by default

* add raylet std/err pytest checker

* add worker logs file check

* fix asan check

* loop in glog enums

* fix python lint

* lint for autoindent

* fix indent lint

* make raylet.err is not empty
2020-09-28 22:15:15 +08:00

13 lines
490 B
Diff

diff --git src/logging.cc src/logging.cc
--- src/logging.cc
+++ src/logging.cc
@@ -1135,7 +1135,8 @@ void LogFileObject::Write(bool force_flush,
<< setw(2) << tm_time.tm_min
<< setw(2) << tm_time.tm_sec
<< '.'
- << GetMainThreadPid();
+ << GetMainThreadPid()
+ << ".log";
const string& time_pid_string = time_pid_stream.str();
if (base_filename_selected_) {