lib/semantic_logger/appender/bugsnag.rb in semantic_logger-3.2.1 vs lib/semantic_logger/appender/bugsnag.rb in semantic_logger-3.3.0

- old
+ new

@@ -7,11 +7,11 @@ # Send log messages to Bugsnag # # Example: # SemanticLogger.add_appender(appender: :bugsnag) # -class SemanticLogger::Appender::Bugsnag < SemanticLogger::Appender::Base +class SemanticLogger::Appender::Bugsnag < SemanticLogger::Subscriber # Create Bugsnag Error / Exception Appender # # Parameters # level: [:trace | :debug | :info | :warn | :error | :fatal] # Override the log level for this appender. @@ -41,10 +41,10 @@ super(options, &block) end # Returns [Hash] of parameters to send to Bugsnag. def call(log, logger) - h = log.to_h + h = log.to_h(host, application) h[:severity] = log_level(log) h.delete(:time) h.delete(:exception) h end