Skip to content

Quiet expected error logs (#497, #499, #500)#226

Merged
peterdrier merged 3 commits intomainfrom
sprint/20260415/batch-1
Apr 15, 2026
Merged

Quiet expected error logs (#497, #499, #500)#226
peterdrier merged 3 commits intomainfrom
sprint/20260415/batch-1

Conversation

@peterdrier
Copy link
Copy Markdown
Owner

Summary

Test plan

  • Build green (verified locally)
  • Cancel a /Profile/Picture request mid-flight on QA and confirm no warning appears in logs
  • Add an invalid email on /Profile/Emails and confirm no log warning
  • Try to delete a shift with signups and confirm no log warning

🤖 Generated with Claude Code

peterdrier and others added 3 commits April 15, 2026 04:08
- nobodies-collective#497: Catch OperationCanceledException in ProfileController.Picture
  and return 499 without logging when the client aborted.
- nobodies-collective#499: Drop LogWarning wrapping ValidationException from
  UserEmailService.AddEmailAsync; user-input validation is expected.
- nobodies-collective#500: Drop LogWarning wrapping "cannot delete shift with signups"
  in ShiftAdminController.DeleteShift; this is an expected guardrail.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previous commit deleted the log calls entirely; we still want a record
of these problems in the log — just without the exception object/stack
trace and at a lower severity than Warning.

- ProfileController.Picture: LogInformation on client-cancelled request
- ProfileController.AddEmail: LogInformation on rejected email add
- ShiftAdminController.DeleteShift: LogInformation on rejected delete

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Previous commit downgraded these to LogInformation, but the production
log viewer only renders Warning and above, so Information-level logs
are effectively invisible in prod. Keep LogWarning; the value is that
the exception object is no longer attached (no stack trace spam) while
the event is still visible to whoever watches the prod log viewer.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@peterdrier peterdrier merged commit 86bfb8a into main Apr 15, 2026
3 checks passed
@peterdrier peterdrier deleted the sprint/20260415/batch-1 branch April 15, 2026 12:39
@coolify-nuc-humans
Copy link
Copy Markdown

The preview deployment for humans-qa failed. 🔴

Open Build Logs | Open Application Logs

Last updated at: 2026-04-15 12:39:56 CET

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.

1 participant