Sha256: 85b2f093c85234acc1ed32458c5b25b2c2e4ecd6e3ca19a64baeba08024ef33f

Contents?: true

Size: 589 Bytes

Versions: 89

Compression:

Stored size: 589 Bytes

Contents

require 'honeybadger/plugin'
require 'honeybadger/agent'

module Honeybadger
  module Plugins
    module Passenger
      Plugin.register do
        requirement { defined?(::PhusionPassenger.on_event) }

        execution do
          ::PhusionPassenger.on_event(:starting_worker_process) do |forked|
            logger.debug('Starting passenger worker process')
          end

          ::PhusionPassenger.on_event(:stopping_worker_process) do
            logger.debug('Stopping passenger worker process')
            Honeybadger.stop
          end
        end
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
honeybadger-5.14.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.14.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.13.3 lib/honeybadger/plugins/passenger.rb
honeybadger-5.13.2 lib/honeybadger/plugins/passenger.rb
honeybadger-5.13.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.13.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.12.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.11.2 lib/honeybadger/plugins/passenger.rb
honeybadger-5.11.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.11.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.8.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.7.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.6.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.5.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.5.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.4.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.4.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.3.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.2.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.0.2 lib/honeybadger/plugins/passenger.rb