Skip to content
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

fix: fail non-fatally when InitLogging fails #35138

Merged
merged 1 commit into from Aug 2, 2022

Conversation

nornagon
Copy link
Member

Some apps use logging in production to collect data in the wild. However,
there's no way for such apps to recover from a situation in which logging fails
(e.g. if the log file location is not accessible).

Instead of crashing, log (?) an error and continue.

Notes: Do not exit when logging initialization fails.

@nornagon nornagon added semver/patch backwards-compatible bug fixes target/20-x-y labels Jul 29, 2022
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jul 29, 2022
@deepak1556
Copy link
Member

When initializing logging fails, how does PLOG(ERROR) surface to the users ? Does the runtime log to stderr in this case ?

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jul 30, 2022
@jkleinsc
Copy link
Contributor

jkleinsc commented Aug 2, 2022

Merging as CI failure unrelated to PR change.

@jkleinsc jkleinsc merged commit 3d4d1b3 into main Aug 2, 2022
@jkleinsc jkleinsc deleted the no-crash-on-init-logging-fail branch August 2, 2022 19:45
@release-clerk
Copy link

release-clerk bot commented Aug 2, 2022

Release Notes Persisted

Do not exit when logging initialization fails.

@trop
Copy link
Contributor

trop bot commented Aug 2, 2022

I have automatically backported this PR to "20-x-y", please check out #35190

schetle pushed a commit to schetle/electron that referenced this pull request Nov 3, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants