Skip to content

refactor: standardize error logging across codebase#116

Merged
xia0pin9 merged 1 commit intopinterest:masterfrom
xia0pin9:refactor/log-standardization
Jan 13, 2026
Merged

refactor: standardize error logging across codebase#116
xia0pin9 merged 1 commit intopinterest:masterfrom
xia0pin9:refactor/log-standardization

Conversation

@xia0pin9
Copy link
Copy Markdown
Contributor

@xia0pin9 xia0pin9 commented Jan 8, 2026

Changes:

  • Use %w for error wrapping instead of %s with err.Error()
  • Lowercase error message prefixes (Error→error, Failed→failed, etc.)
  • Remove redundant .Error() calls in log statements
  • Standardize punctuation (; instead of . in compound messages)
  • Normalize brand name capitalization (Knox→knox in errors)
  • Update test expectations to match new error messages
  • Make TestNewFileClient more resilient with prefix matching

This is a mechanical refactoring with no functional changes. All tests pass after this change.

Changes:
- Use %w for error wrapping instead of %s with err.Error()
- Lowercase error message prefixes (Error→error, Failed→failed, etc.)
- Remove redundant .Error() calls in log statements
- Standardize punctuation (; instead of . in compound messages)
- Normalize brand name capitalization (Knox→knox in errors)
- Update test expectations to match new error messages
- Make TestNewFileClient more resilient with prefix matching

This is a mechanical refactoring with no functional changes.
All tests pass after this change.
@xia0pin9 xia0pin9 force-pushed the refactor/log-standardization branch from 9ac99df to d3d5c37 Compare January 8, 2026 00:45
@xia0pin9 xia0pin9 merged commit 1039c19 into pinterest:master Jan 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants