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-3.0.2 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.1 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta6 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta5 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta4 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta3 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta2 lib/honeybadger/plugins/passenger.rb
honeybadger-3.0.0.beta1 lib/honeybadger/plugins/passenger.rb