lib/daemon_logger.rb in game-server-0.4.5 vs lib/daemon_logger.rb in game-server-0.4.6
- old
+ new
@@ -63,16 +63,16 @@
DaemonLogger.instance.logger.send(log_type, message)
end
def log_exception(exception, send_mail = true, additional_info = "")
-# message = <<"EOF"
-# Exception was raised #{exception}
-# #{additional_info}
+ message = <<"EOF"
+Exception was raised #{exception}
+#{additional_info}
+BACKTRACE:
+#{exception.backtrace.join("\n")}
+EOF
-# BACKTRACE:
-# #{exception.backtrace.join("\n")}
-# EOF
# DaemonLogger.instance.send_emails_to_receivers(message) if send_mail
log(message, :error)
ExceptionNotifier::Notifier.background_exception_notification(e).deliver
end