Fixed bug: Logger is not present.

This commit is contained in:
Thorsten Eckel 2015-07-02 17:10:35 +02:00
parent 7d9eed3dfb
commit d80ddecc44

View file

@ -18,11 +18,9 @@ module Channel::EmailSend
channel_instance.disconnect
rescue => e
logger.error "Can't use Channel::#{channel[:adapter]}"
logger.error e.inspect
logger.error e.backtrace
Rails.logger.error "Can't use Channel::#{channel[:adapter]}"
Rails.logger.error e.inspect
Rails.logger.error e.backtrace
end
end
end