Structured logging, error handling, and integration tests #31
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
qwc-open/backive!31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "enhance/slog-errorhandling-integration"
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?
Summary
log.Printf/log.Printlncalls tolog/slogwith structured key-value pairs across all packages (backive, cmd/backive, cmd/backive_udev, cmd/backive_ui, ui)Database.Save(),Database.Load(),Runs.Load(), andLogToJson()defaultCallback(): mount error checked, deferred unmount, correct error variables logged, individual backup failures usecontinueretryWithBackoff()for mount/umount commands (3 attempts with exponential backoff)SlogWriteradapter for bridging slog tocmd.Stdout/cmd.StderrTest plan
go buildpasses for all packages (backive, cmd/backive, cmd/backive_udev)go test -v -coverpasses — 48 tests, 77% coveragego vetclean across all packagesCloses #21 #25 #16 #17 #18
🤖 Generated with Claude Code
22196d3d5a72f8d9535d