mirror of
https://github.com/wassname/ray.git
synced 2026-07-21 12:50:45 +08:00
[core] Fix Ray service startup when logging redirection is disabled. (#9547)
This commit is contained in:
@@ -391,6 +391,10 @@ def setup_logger(logging_level, logging_format):
|
||||
|
||||
|
||||
def open_log(path, **kwargs):
|
||||
"""
|
||||
Opens the log file at `path`, with the provided kwargs being given to
|
||||
`open`.
|
||||
"""
|
||||
kwargs.setdefault("buffering", 1)
|
||||
kwargs.setdefault("mode", "a")
|
||||
kwargs.setdefault("encoding", "utf-8")
|
||||
|
||||
Reference in New Issue
Block a user