-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send raylet error logs through the log monitor #5351
Conversation
Test PASSed. |
cc @jovany-wang do you know why these log messages get written to STDERR? From what I can tell in the main, logging is initialized first thing. However, e.g., stats::Init() seems to print the above still to STDERR complaining that InitGoogleLogging hasn't been called yet. |
I looked into it and found the I'll try to fix it later. |
btw, which file do you expect these logs to be written? |
/tmp/ray/session_<id>/logs/raylet.out I believe (or whereever they end up
after log init finishes).
Eric
…On Sun, Aug 4, 2019 at 10:49 PM Qing Wang ***@***.***> wrote:
btw, which file do you expect these logs to be written?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5351?email_source=notifications&email_token=AAADUSWWTXRV5ILBDABP35LQC65OPA5CNFSM4IIZUVCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3QX7BY#issuecomment-518094727>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAADUSVOOF7XSMV3XGZVSQTQC65OPANCNFSM4IIZUVCA>
.
|
@jovany-wang Thanks! |
Looks good to me (I tried it out) assuming that the messages below go away (these are currently printed at startup). I agree putting them in
|
Test PASSed. |
Added a StdoutLogger which is the new default logger for glog when no glog log dir is configured (as is the case by default). This achieves the desired behaviour of INFO in raylet.out. |
Test PASSed. |
Test PASSed. |
Test PASSed. |
Tests look unrelated. |
What do these changes do?
Now if your raylet crashes, you get the error sent via the log monitor process:
Related issue number
Closes #5322
Linter
scripts/format.sh
to lint the changes in this PR.