Actions
Defect #14598
closedWrong test with logger.info in model mail_handler
Defect #14598:
Wrong test with logger.info in model mail_handler
Added by Jérôme BATAILLE over 13 years ago. Updated about 13 years ago.
Resolution:
Fixed
Affected version:
Files
| RM_mail_handler_bug_fix.diff (2.95 KB) RM_mail_handler_bug_fix.diff | Jérôme BATAILLE, 2013-08-01 15:33 |
Updated by Jérôme BATAILLE over 13 years ago
Actions
#1
patch made against Redmine V1.2.1
if logger.info --> if logger.info?
Updated by Toshi MARUYAMA over 13 years ago
Actions
#2
"logger.info" is always true.
$ RAILS_ENV=test ruby script/rails console Loading test environment (Rails 3.2.13) 1.9.3p429 :001 > logger = Logger.new(STDOUT) => #<Logger:0x000000055b5b80 ... 1.9.3p429 :002 > logger.level = Logger::ERROR => 3 1.9.3p429 :003 > logger.info => true 1.9.3p429 :004 > logger.info? => false 1.9.3p429 :005 > logger.info "test" => true 1.9.3p429 :006 > logger.level = Logger::INFO => 1 1.9.3p429 :007 > logger.info? => true 1.9.3p429 :008 > logger.info nil => true 1.9.3p429 :009 > logger.info "test" test => true
Updated by Toshi MARUYAMA over 13 years ago
Actions
#3
- Status changed from New to Closed
Committed in trunk r12073.
Updated by Jérôme BATAILLE about 13 years ago
Actions
#4
Any idea of the version in which the revision will be included ?
Updated by Jérôme BATAILLE about 13 years ago
Actions
#5
- Status changed from Closed to Reopened
Updated by Jérôme BATAILLE about 13 years ago
Actions
#6
I'm sorry to reopen this issue, but because it was closed without a target version, I think it was fallen in the limbo :-)
Updated by Toshi MARUYAMA about 13 years ago
Actions
#7
- Status changed from Reopened to Closed
- Target version set to 2.4.0
- Resolution set to Fixed
It is in 2.4.0.
Updated by Jérôme BATAILLE about 13 years ago
Actions
#8
Thanks a lot !
Updated by Go MAEDA almost 11 years ago
Actions
#9
- Related to Patch #9102: Dry up MailHandler logging added
Actions