]> source.dussan.org Git - redmine.git/commitdiff
Log current user on each request.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Sep 2012 14:54:22 +0000 (14:54 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 9 Sep 2012 14:54:22 +0000 (14:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10339 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/application_controller.rb

index aacb8e52356916ae2792bda5f0699668f8344c51..8cdef289af7a125fc1e17aaeb9563bfd0f4bae7c 100644 (file)
@@ -82,6 +82,7 @@ class ApplicationController < ActionController::Base
     Setting.check_cache
     # Find the current user
     User.current = find_current_user
+    logger.info("  Current user: " + (User.current.logged? ? "#{User.current.login} (id=#{User.current.id})" : "anonymous")) if logger
   end
 
   # Returns the current user or nil if no user is logged in