Sha256: 968ced82c47c299b0806ff2a28d6a68621bcd82ebc437d863cb710fd13b7f4d7

Contents?: true

Size: 324 Bytes

Versions: 33

Compression:

Stored size: 324 Bytes

Contents

module Bugsnag::Middleware
  class Mailman
    def initialize(bugsnag)
      @bugsnag = bugsnag
    end

    def call(notification)
      mailman_msg = notification.request_data[:mailman_msg]
      notification.add_tab(:mailman, {"message" => mailman_msg}) if mailman_msg
      @bugsnag.call(notification)
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
bugsnag-5.5.0 lib/bugsnag/middleware/mailman.rb
bugsnag-5.4.1 lib/bugsnag/middleware/mailman.rb
bugsnag-5.4.0 lib/bugsnag/middleware/mailman.rb
bugsnag-5.3.3 lib/bugsnag/middleware/mailman.rb
bugsnag-5.3.2 lib/bugsnag/middleware/mailman.rb
bugsnag-5.3.1 lib/bugsnag/middleware/mailman.rb
bugsnag-5.3.0 lib/bugsnag/middleware/mailman.rb
bugsnag-5.2.0 lib/bugsnag/middleware/mailman.rb
bugsnag-5.1.0 lib/bugsnag/middleware/mailman.rb
bugsnag-5.0.1 lib/bugsnag/middleware/mailman.rb
bugsnag-5.0.0 lib/bugsnag/middleware/mailman.rb
bugsnag-4.2.1 lib/bugsnag/middleware/mailman.rb
bugsnag-4.2.0 lib/bugsnag/middleware/mailman.rb
bugsnag-4.1.0 lib/bugsnag/middleware/mailman.rb
bugsnag-4.0.2 lib/bugsnag/middleware/mailman.rb
bugsnag-4.0.1 lib/bugsnag/middleware/mailman.rb
bugsnag-4.0.0 lib/bugsnag/middleware/mailman.rb
bugsnag-3.0.0 lib/bugsnag/middleware/mailman.rb
bugsnag-2.8.13 lib/bugsnag/middleware/mailman.rb
bugsnag-maglev--2.8.12 lib/bugsnag/middleware/mailman.rb