fix(frailbox): improve legacy logger file error handling (Closes #20) - #31
Open
yanyishuai wants to merge 1 commit into
Open
fix(frailbox): improve legacy logger file error handling (Closes #20)#31yanyishuai wants to merge 1 commit into
yanyishuai wants to merge 1 commit into
Conversation
yanyishuai
force-pushed
the
fix/issue-20-frailbox-logger-errors
branch
from
July 1, 2026 09:46
0891a8d to
a130b4d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves legacy frailbox logger resilience when
LOG_FILEcannot be opened or when write/flush operations fail. Logging continues on stderr with clearer diagnostics instead of failing silently.Closes #20
Changes
frailbox/src/logger.c— errno-aware open failures, write/flush fallback, helper accessorsfrailbox/include/logger.h—log_uses_stderr_fallback(),log_last_io_error()frailbox/tests/test_logger_errors.c— fallback + default stderr harnessfrailbox/docs/logger-errors.md— documents behaviorfrailbox/Makefile—make test-logger-errorstargetTesting
Diagnostic decrypt password:
5a1b1d70a64e6b7c3943Checklist
Solana wallet for bounty payout:
Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE