Displaying 1 result from an estimated 1 matches for "aboutcontrol".
Did you mean:
outcontrol
2006 Nov 16
0
Rails logger doesn't log nil, Ruby logger does
...il
logger.info "end test"
$ ruby log.rb
I, [2006-11-15T16:45:00.348262 #2058] INFO -- : test
I, [2006-11-15T16:45:00.348815 #2058] INFO -- : true
I, [2006-11-15T16:45:00.348917 #2058] INFO -- : nil
I, [2006-11-15T16:45:00.349006 #2058] INFO -- : end test
Rails 1.1.6 example:
class AboutController < ApplicationController
def home
logger.info "test"
logger.info true
logger.info nil
logger.info "end test"
end
end
Processing AboutController#home (for 127.0.0.1 at 2006-11-15 16:46:54)
[GET]
Session ID: 36e54d45b4ccb93b8d70d1a243526682
Paramet...