Skip to content

Enable log_language middleware to gauge real Accept-Language usage - #155

Merged
brianglass merged 1 commit into
mainfrom
enable-language-logging
Jul 31, 2026
Merged

Enable log_language middleware to gauge real Accept-Language usage#155
brianglass merged 1 commit into
mainfrom
enable-language-logging

Conversation

@brianglass

Copy link
Copy Markdown
Owner

orthocal.middleware.log_language already existed (logs the resolved Accept-Language header at DEBUG level) but was never registered in MIDDLEWARE, so it never actually ran. Wiring it in so we can get a real, forward-looking answer on whether the Romanian/Serbian translations see any traffic, before deciding whether to keep them -- Cloud Run's default request logs don't capture request headers at all, and there's no existing signal to mine retroactively.

orthocal.middleware.log_language already existed (logs the resolved
Accept-Language header at DEBUG level) but was never registered in
MIDDLEWARE, so it never actually ran. Wiring it in so we can get a
real, forward-looking answer on whether the Romanian/Serbian
translations see any traffic, before deciding whether to keep them --
Cloud Run's default request logs don't capture request headers at all,
and there's no existing signal to mine retroactively.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@brianglass
brianglass merged commit 1743667 into main Jul 31, 2026
5 checks 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.

1 participant