Use Rails.logger for the SMTP server too

This commit is contained in:
Patrick Gansterer 2017-10-09 16:42:01 +02:00
parent a6dd7c731a
commit e9b346f02c

View file

@ -54,7 +54,7 @@ namespace :foodsoft do
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
host = ENV['SMTP_SERVER_HOST']
rake_say "Started SMTP server for incoming email on port #{port}."
server = FoodsoftMailReceiver.new port, host, 1
server = FoodsoftMailReceiver.new port, host, 1, logger: Rails.logger
server.start
server.join
end