[core] Fix Ray service startup when logging redirection is disabled. (#9547)

This commit is contained in:
Clark Zinzow
2020-07-23 11:26:24 -05:00
committed by GitHub
parent 01d6edae9c
commit 9f969260e8
2 changed files with 43 additions and 39 deletions
+4
View File
@@ -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")