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.24.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.23.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.22.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.21.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.20.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.20.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.19.2 lib/honeybadger/plugins/passenger.rb
honeybadger-5.19.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.19.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.18.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.17.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.16.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.6 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.5 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.4 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.3 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.2 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.1 lib/honeybadger/plugins/passenger.rb
honeybadger-5.15.0 lib/honeybadger/plugins/passenger.rb
honeybadger-5.14.2 lib/honeybadger/plugins/passenger.rb