Method: Net::SMTP#debug_output=
- Defined in:
- lib/net/smtp.rb
#debug_output=(arg) ⇒ Object Also known as: set_debug_output
WARNING: This method causes serious security holes. Use this method for only debugging.
Set an output stream for debug logging. You must call this before #start.
# example
smtp = Net::SMTP.new(addr, port)
smtp.set_debug_output $stderr
smtp.start do |smtp|
....
end
395 396 397 |
# File 'lib/net/smtp.rb', line 395 def debug_output=(arg) @debug_output = arg end |