]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Add some logging to help diagnose changeset feed locale issue
[rails.git] / 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