lib/daemon_logger.rb in game-server-0.4.9 vs lib/daemon_logger.rb in game-server-0.4.10
- old
+ new
@@ -58,10 +58,10 @@
module Mixins
# FIXME:: DOCUMENTATION
def log(message, log_type = :info)
puts "#{Time.now} #{log_type} #{message}"
- Thread.new{ DaemonLogger.instance.logger.send(log_type, message) }
+ DaemonLogger.instance.logger.send(log_type, message)
end
def log_exception(exception, send_mail = true, additional_info = "")
message = <<"EOF"