feat: log unhandled errors and pretty dev output (WealthLedger/backend#120) #121
No Reviewers
Labels
Clear labels
Kind/Dependencies
Kind/Investigation
Kind/Process
Kind/Refactor
audit/2026-10-11
kind/investigation
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Dependency update or dependency-management work
Research or decision required before implementation
Developer workflow, CI/CD, tooling, or process improvement
Internal code or configuration restructuring without new product behavior
Technical Audit Remediation — 2026-10-11
Нужна проверка evidence до решения; runtime-дефект не утверждается
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: WealthLedger/backend#121
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #120.
Что изменено
StructuredLogger.event('error', 'http.request.unhandled')с полямиcode,errorName,errorStack.messageне пишется; в stack попадают только строкиat .... Публичный ответ problem+json не меняется.invalidFields(JSON pointers без значений).NODE_ENV=developmentвключаетсяpino-prettyс цветом. Production-зависимостей не добавлено (pino-prettyв devDependencies, production-образ делаетprune --omit=dev).userIdв completion уже был:JwtAuthGuardставит его черезPinoLogger.assign, подтверждено выводом. Отдельного кода не добавлял.<unmatched>.Проверки
npm run lint:check,typecheck:app,typecheck:test— зелёные.npm test— 40 suites, 289 tests passed.npm run test:lint— OK.requestId,userId) проверен вручную.app.e2e-spec.tsобновлён (ожидает два события на 500), но не запущен: наdevelopбез моих правокtest:sqliteпадает с OOM во время jest-прогона. Это ограничение окружения, не регрессия. Нужна проверка в CI или на машине с достаточной памятью.Вне scope
Полные тела запросов и ответов (требует нового ADR).
Pull request closed