lib/semantic_logger/appender/bugsnag.rb in semantic_logger-3.1.0 vs lib/semantic_logger/appender/bugsnag.rb in semantic_logger-3.2.0

- old
+ new

@@ -50,15 +50,12 @@ h end # Send an error notification to Bugsnag def log(log) - # Only log if level is warn, or error. - return false if (level_index > (log.level_index || 0)) || - # Ignore logs coming from Bugsnag itself - (log.name == 'Bugsnag') || - # Filtered out? - !include_message?(log) + return false unless should_log?(log) + # Ignore logs coming from Bugsnag itself + return false if log.name == 'Bugsnag' # Send error messages as Runtime exceptions exception = if log.exception log.exception