Sha256: 6772a23f395f566eb965044a4f866aa4400e625c9fba968273e325f822ed56f3
Contents?: true
Size: 539 Bytes
Versions: 13
Compression:
Stored size: 539 Bytes
Contents
module Bugsnag::Middleware ## # Extracts and attaches rake task information to an error report class Rake def initialize(bugsnag) @bugsnag = bugsnag end def call(report) task = report.request_data[:bugsnag_running_task] if task report.add_tab(:rake_task, { :name => task.name, :description => task.full_comment, :arguments => task.arg_description }) report.automatic_context ||= task.name end @bugsnag.call(report) end end end
Version data entries
13 entries across 13 versions & 1 rubygems