From: Tom Hughes Date: Wed, 16 Nov 2011 08:56:35 +0000 (+0000) Subject: Add some logging to help diagnose changeset feed locale issue X-Git-Tag: live~6619 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/4408416b62a67bab980f9fdec3e4be04a7680039 Add some logging to help diagnose changeset feed locale issue --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index f07cacbd6..0412080fa 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -249,6 +249,8 @@ class ApplicationController < ActionController::Base I18n.locale = request.compatible_language_from(I18n.available_locales) + logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}" + response.headers['Content-Language'] = I18n.locale.to_s end