liquid-ext 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/liquid/cli.rb +1 -1
- data/lib/liquid/server.rb +14 -0
- data/lib/liquid/zmq.rb +2 -0
- data/liquid-ext.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b1cea40a2404ada25782dae605a73f47003b7f4
|
4
|
+
data.tar.gz: 699c6876bc639ffb2d589451df6acb92368faccc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72a1f313387ca40b060e71fd74254600bf5a748131f98c6c19c9b836758d0ced942de87784ad567f6e002c8fbb23533fe503f9819e5c88381e4313d8917e4fb4
|
7
|
+
data.tar.gz: f75ec1b17c96e9ebf5f18557a90dcc1d492fde24550a92c3983804d6833750c21da83733e193cb291d0a2af294785e59f2f861f138bc240b665ceab4f74297a1
|
data/Gemfile.lock
CHANGED
data/lib/liquid/cli.rb
CHANGED
data/lib/liquid/server.rb
CHANGED
@@ -6,10 +6,23 @@ module Liquid
|
|
6
6
|
def initialize
|
7
7
|
$log.info("#{self.class.name.downcase} #{RUBY_DESCRIPTION}")
|
8
8
|
$log.info("#{self.class.name.downcase}", env: Env.mode)
|
9
|
+
initialize_raven
|
9
10
|
initialize_tracker
|
10
11
|
initialize_metrics
|
11
12
|
end
|
12
13
|
|
14
|
+
def initialize_raven
|
15
|
+
return unless $conf.raven
|
16
|
+
require 'raven'
|
17
|
+
Raven.configure do |config|
|
18
|
+
config.dsn = $conf.raven.dsn
|
19
|
+
config.logger = $log
|
20
|
+
end
|
21
|
+
$log.add_exception_handler do |exc, message, attribs|
|
22
|
+
Raven.capture_exception(exc)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
13
26
|
def initialize_tracker
|
14
27
|
if $conf.tracker.kafka.enabled
|
15
28
|
# http://kafka.apache.org/documentation.html#producerconfigs
|
@@ -31,6 +44,7 @@ module Liquid
|
|
31
44
|
end
|
32
45
|
|
33
46
|
def initialize_zmachine
|
47
|
+
require 'zmachine'
|
34
48
|
ZMachine.logger = $log
|
35
49
|
ZMachine.debug = true if $conf.zmachine.debug
|
36
50
|
ZMachine.heartbeat_interval = 0.1
|
data/lib/liquid/zmq.rb
CHANGED
data/liquid-ext.gemspec
CHANGED