Skip to content

glog: Use Fatalf to exit when writing to logsinks fails #75

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

atetubou
Copy link

@atetubou atetubou commented Apr 16, 2025

Without this, our program exited without any message when there are some disk write error (e.g. no space left on device).

By increasing the severity, we can notice what caused the program exited as the log will be shown on stderr.

This is imported from http://cl/748177961

Without this, our program exited without any message when there are some disk write error (e.g. no space on device).

By increasing the severity, we can notice what caused the program exited as the log will be shown on stderr.
@atetubou atetubou changed the title Use Fatal severity if glog exits due to write failure glog: Use Fatal severity if glog exits due to write failure Apr 16, 2025
@atetubou
Copy link
Author

I sent this to internal repository first http://cl/748177961.

@atetubou atetubou marked this pull request as draft April 16, 2025 07:05
@atetubou atetubou changed the title glog: Use Fatal severity if glog exits due to write failure glog: Use Fatalf to exit when writing to logsinks fails Apr 24, 2025
@atetubou atetubou marked this pull request as ready for review April 24, 2025 01:01
@atetubou
Copy link
Author

@chressie could you review this too? Thanks.

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.

1 participant