Merge pull request #121 from jjoos/master

Syncing output when running in foreground.
This commit is contained in:
Samuel Cochran 2014-02-13 16:33:07 +11:00
commit f575b849a4

View File

@ -142,6 +142,11 @@ module MailCatcher extend self
# Stash them away for later
@@options = options
# If we're running in the foreground sync the output.
unless options[:daemon]
$stdout.sync = $stderr.sync = true
end
puts "Starting MailCatcher"
Thin::Logging.silent = true