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.0.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.0.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.0.0.beta1 lib/honeybadger/plugins/passenger.rb
honeybadger-4.12.2 lib/honeybadger/plugins/passenger.rb
honeybadger-4.12.1 lib/honeybadger/plugins/passenger.rb
honeybadger-4.12.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.11.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.10.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.9.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.8.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.7.3 lib/honeybadger/plugins/passenger.rb
honeybadger-4.7.2 lib/honeybadger/plugins/passenger.rb
honeybadger-4.7.1 lib/honeybadger/plugins/passenger.rb
honeybadger-4.7.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.6.0 lib/honeybadger/plugins/passenger.rb
honeybadger-4.5.6 lib/honeybadger/plugins/passenger.rb
honeybadger-4.5.5 lib/honeybadger/plugins/passenger.rb
honeybadger-4.5.4 lib/honeybadger/plugins/passenger.rb
honeybadger-4.5.3 lib/honeybadger/plugins/passenger.rb
honeybadger-4.5.2 lib/honeybadger/plugins/passenger.rb