lib/liquid/server.rb in liquid-ext-3.2.0 vs lib/liquid/server.rb in liquid-ext-3.3.0
- old
+ new
@@ -7,10 +7,11 @@
$log.info("#{self.class.name.downcase} #{RUBY_DESCRIPTION}")
$log.info("#{self.class.name.downcase}", env: Env.mode)
initialize_raven
initialize_tracker
initialize_metrics
+ initialize_health_checks
end
def initialize_raven
return unless $conf.raven
require 'raven'
@@ -39,9 +40,16 @@
def initialize_metrics
::Metrics.start
::Metrics::TrackerReporter.new($tracker.with_topic('metrics'))
Signal.register_shutdown_handler { ::Metrics.stop }
+ end
+
+ def initialize_health_checks
+ Thread.new do
+ Thread.name = "Health Check"
+ HealthCheck.poll
+ end
end
def initialize_zmachine
require 'zmachine'
ZMachine.logger = $log