lib/isolator/notifier.rb in isolator-0.8.0 vs lib/isolator/notifier.rb in isolator-0.9.0
- old
+ new
@@ -27,15 +27,15 @@
end
def log_exception
return unless Isolator.config.logger
- offense_line = filtered_backtrace.first
-
msg = "[ISOLATOR EXCEPTION]\n" \
"#{exception.message}"
- msg += "\n ↳ #{offense_line}" if offense_line
+ filtered_backtrace.each do |offense_line|
+ msg += "\n ↳ #{offense_line}"
+ end
Isolator.config.logger.warn(msg)
end
def send_notifications