summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-14 21:53:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-14 21:53:38 +0000
commit15bb695bbb2cfa6b2e1fcdc5fb77e4e0d22f2ad3 (patch)
tree4616e4b98af7be8cc4eedbbe0603a3f6c0e56716
parent64fea07affaf161ce352b15dfacca755d28541e2 (diff)
downloadredmine-15bb695bbb2cfa6b2e1fcdc5fb77e4e0d22f2ad3.tar.gz
redmine-15bb695bbb2cfa6b2e1fcdc5fb77e4e0d22f2ad3.zip
Use logger.info? (#18605).
git-svn-id: http://svn.redmine.org/redmine/trunk@13766 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/controllers/timelog_controller.rb2
-rw-r--r--app/models/project.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 20eccef71..25ff5d099 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -182,7 +182,7 @@ class TimelogController < ApplicationController
time_entry.safe_attributes = attributes
call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
unless time_entry.save
- logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info
+ logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info?
# Keep unsaved time_entry ids to display them in flash error
unsaved_time_entry_ids << time_entry.id
end
diff --git a/app/models/project.rb b/app/models/project.rb
index f7cfc65e0..371d3dd11 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -904,7 +904,7 @@ class Project < ActiveRecord::Base
self.issues << new_issue
if new_issue.new_record?
- logger.info "Project#copy_issues: issue ##{issue.id} could not be copied: #{new_issue.errors.full_messages}" if logger && logger.info
+ logger.info "Project#copy_issues: issue ##{issue.id} could not be copied: #{new_issue.errors.full_messages}" if logger && logger.info?
else
issues_map[issue.id] = new_issue unless new_issue.new_record?
end