Method: Jabber.debuglog
- Defined in:
- lib/vendor/xmpp4r/lib/xmpp4r/debuglog.rb
.debuglog(string) ⇒ Object
Outputs a string only if debugging mode is enabled. If the string includes several lines, 4 spaces are added at the beginning of each line but the first one. Time is prepended to the string.
38 39 40 41 |
# File 'lib/vendor/xmpp4r/lib/xmpp4r/debuglog.rb', line 38 def Jabber::debuglog(string) return if not @@debug logger.debug string.chomp.gsub("\n", "\n ") end |