lib/botfly.rb in botfly-0.3.1 vs lib/botfly.rb in botfly-0.3.2
- old
+ new
@@ -12,15 +12,14 @@
require 'botfly/bot'
require 'botfly/matcher'
require 'botfly/muc_client'
-
Thread.abort_on_exception = true
module Botfly
def Botfly.logger
- @logger = Logger.new(@logfile)
+ @logger ||= Logger.new(@logfile)
return @logger
end
def Botfly.login(jid,pass,opts={},logfile=STDOUT,&block)
@logfile = logfile
Botfly.logger.info("BOTFLY: #login")