diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-09 14:54:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-09-09 14:54:22 +0000 |
commit | 3b5fd45faecbb6d36e097f070c8f4fcfa8662d10 (patch) | |
tree | 397596662b1ec8b438be5141ae03f8614944bb98 /app/controllers | |
parent | 6b0e8fd82ae98b44fd700a550b14c0712822c66e (diff) | |
download | redmine-3b5fd45faecbb6d36e097f070c8f4fcfa8662d10.tar.gz redmine-3b5fd45faecbb6d36e097f070c8f4fcfa8662d10.zip |
Log current user on each request.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10339 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index aacb8e523..8cdef289a 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 |