mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #636] [MERGED] fix(file-storage): use err-first logger form in flush failure path #4706
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4706
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/636
Author: @Romuromylus
Created: 5/10/2026
Status: ✅ Merged
Merged: 5/10/2026
Merged by: @SpicyMarinara
Base:
main← Head:fix/file-storage-flush-logger-err-first📝 Commits (1)
6254d35fix(file-storage): use err-first logger form in flush failure path📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
packages/server/src/db/file-backed-store.ts(+1 -1)📄 Description
Linked issue
Closes #635
Why this change
CLAUDE.md § Loggingrequires Pino's err-first form for error logs (logger.error(err, "...")), butFileTableStore.flush's catch block inpackages/server/src/db/file-backed-store.tswas still using the metadata-first form (logger.error({ err }, "...")).d67d4f4) corrected the three sibling instances in this same file and intentionally left this pre-existing one out of scope to keep that PR focused. Issue #635 tracks the cleanup.What changed
packages/server/src/db/file-backed-store.ts: switched the single remaininglogger.error({ err }, ...)call inFileTableStore.flush's catch block to err-first form. No behavior change — only the log shape, so flush-failure errors deserialize as the top-levelerrfield, matching the rest of the file.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm install --frozen-lockfileand the package build steps)./, observe/api/chats,/api/characters,/api/sprites,/api/avatars,/api/regex-scripts,/api/.../game-stateall return 200, no console errors. (The catch block only fires on flush failure, so the only runtime risk is a build/import regression — whichpnpm checkand a successful container start cover.)erras a top-level field instead of nested under{ err }.Docs and release impact
UI evidence (if applicable)
N/A — server-side log shape change with no UI surface.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.