Skip to content

Fix Google log directory - #9025

Merged
edoakes merged 1 commit into
ray-project:masterfrom
mehrdadn:glog-dir
Jun 19, 2020
Merged

edoakes merged 1 commit into
ray-project:masterfrom
mehrdadn:glog-dir

Conversation

@mehrdadn

@mehrdadn mehrdadn commented Jun 19, 2020 •

Copy link
Copy Markdown
Contributor

Why are these changes needed?

Currently, some log files end up in the user temp directory rather than inside the Ray session log directory, due to an apparent misconfiguration of glog. Fix PR fixes this issue to ensure all Ray-related logs go to the Ray session log directory.

Related issue number

#631

Checks

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@mehrdadn
mehrdadn marked this pull request as ready for review June 19, 2020 02:52
@edoakes

edoakes commented Jun 19, 2020

Copy link
Copy Markdown
Collaborator

Oh, interesting - I've seen this happen before but never often enough for me to look into it. What exactly is the situation where it occurs? I will have a closer look at the code changes in the morning.

@mehrdadn

Copy link
Copy Markdown
Contributor Author

It actually happens all the time for me, just python -c "import ray; ray.init(); ray.shutdown()" is enough.

The reason is that google::SetLogDestination needs to be called for every log level, but for some reason currently it's only called for the threshold level itself, so higher log levels end up going into the default log file.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/27320/
Test FAILed.

@edoakes edoakes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Seems like behavior must not be standard across platforms when it isn't set this way, but this seems like an improvement.

@edoakes
edoakes merged commit f43cad6 into ray-project:master Jun 19, 2020
@mehrdadn
mehrdadn deleted the glog-dir branch June 19, 2020 18:45
@mehrdadn mehrdadn mentioned this pull request Jun 21, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants