Use Rails.logger for the SMTP server too
This commit is contained in:
parent
a6dd7c731a
commit
e9b346f02c
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ namespace :foodsoft do
|
||||||
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
|
port = ENV['SMTP_SERVER_PORT'].present? ? ENV['SMTP_SERVER_PORT'].to_i : 2525
|
||||||
host = ENV['SMTP_SERVER_HOST']
|
host = ENV['SMTP_SERVER_HOST']
|
||||||
rake_say "Started SMTP server for incoming email on port #{port}."
|
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.start
|
||||||
server.join
|
server.join
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue