]> git.openstreetmap.org Git - rails.git/commitdiff
Add some logging to help diagnose changeset feed locale issue
authorTom Hughes <tom@compton.nu>
Wed, 16 Nov 2011 08:56:35 +0000 (08:56 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 16 Nov 2011 08:56:35 +0000 (08:56 +0000)
app/controllers/application_controller.rb

index f07cacbd6cb121f96a29857781bd795875190f9c..0412080fa3a9109faf02dc2e27fe7b0fc297332d 100644 (file)
@@ -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