lib/redimap/imap_conn.rb in redimap-0.5.0 vs lib/redimap/imap_conn.rb in redimap-0.6.0

- old
+ new

@@ -3,20 +3,18 @@ module Redimap class ImapConn def initialize - @logger = Redimap.logger - begin @imap = Net::IMAP.new(Redimap.config.imap_host, { :port => Redimap.config.imap_port, :ssl => true }) @imap.login(Redimap.config.imap_username, Redimap.config.imap_password) rescue Net::IMAP::NoResponseError => e - @logger.error { e.to_s } + Redimap.logger.error { e.to_s } return end if block_given?