mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #635] [Issue]: cleanup(file-storage): logger.error({ err }, ...) protocol drift in saveFileSnapshots #297
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#297
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?
Originally created by @coderabbitai[bot] on GitHub (May 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/635
Originally assigned to: @Romuromylus on GitHub.
Summary
A
logger.errorcall insideFileTableStore.flushinpackages/server/src/db/file-backed-store.tsuses the metadata-first formlogger.error({ err }, "...")instead of the err-first form required byCLAUDE.md § Logging("Log errors with the error object first:logger.error(err, "Import failed")"). This is a pre-existing call site that PR #634 intentionally left out of scope while fixing three sibling instances in the same file.Expected behavior
saveFileSnapshotsflush failures should be logged in Pino's err-first form so the underlying error object is attached aserrrather than nested under a wrapping object, keeping the log shape consistent with the rest of the file:Actual behavior
packages/server/src/db/file-backed-store.ts:941currently passes the error inside a metadata object:This produces a different log shape from the three sibling
logger.errorcalls fixed in commitd67d4f4(PR #634) and violates the convention documented inCLAUDE.md § Logging.Steps to reproduce
packages/server/src/db/file-backed-store.tsat the synced fork HEAD.logger.error({ err }.FileTableStore.flush's catch block at line 941.Environment
3d64348(upstream) / 787b390 (fork mirror)Logs, screenshots, or video
N/A — static code-style fix; no runtime symptom.
Additional context
d67d4f4— switched three newlogger.errorcall sites in the same file to err-first form, deferred this pre-existing one to keep the PR focused.CLAUDE.md § Logging.Template check