Sha256: 4980c05d3694ce677292434b4c204caa63a4547a2ce1d68502f8420e5997f45a
Contents?: true
Size: 529 Bytes
Versions: 24
Compression:
Stored size: 529 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.context ||= task.name end @bugsnag.call(report) end end end
Version data entries
24 entries across 24 versions & 1 rubygems