qb 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/qb/ipc/rpc/server.rb +14 -3
- 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: 556578f69ec36abd7bdf33c79591648e0e4fa982
|
4
|
+
data.tar.gz: 6bed88da71d2d28c49cb85d8996dc4237f68f2e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2130c734af5f958b07c26f1c4b41f9a320440763c64e15c907648fffa6fccffd739e5bc196dfae33b330c3cdbad612475fc3973ed3a172531d3ecc4e145833b6
|
7
|
+
data.tar.gz: 95e309693ee49c7a6c2a62c99cdd7180c1f560346325d03adc4939eb987a75cad70457c1abd4a44284b3afd7b51dbe7c0eeb36154937a39a97c2532d2046ac09
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
data/lib/qb/ipc/rpc/server.rb
CHANGED
@@ -126,11 +126,22 @@ class Server
|
|
126
126
|
# Construction
|
127
127
|
# ========================================================================
|
128
128
|
|
129
|
-
# Instantiate a new `Server
|
130
|
-
|
129
|
+
# Instantiate a new `Server`, which wraps a {::Unicorn::HttpServer} instance.
|
130
|
+
#
|
131
|
+
# @param [::Symbol] unicorn_log_level
|
132
|
+
# Log level for the Unicorn HTTP server. Defaults to `:warn` so that we
|
133
|
+
# don't see it's info log in `qb` `STDOUT`.
|
134
|
+
#
|
135
|
+
def initialize unicorn_log_level: :warn
|
131
136
|
@socket_dir = Dir.mktmpdir( 'qb-ipc-rpc' ).to_pn
|
132
137
|
@socket_path = socket_dir + 'socket'
|
133
|
-
|
138
|
+
|
139
|
+
unicorn_logger = NRSER::Log[ "#{ self.class.name }#http_server" ]
|
140
|
+
unicorn_logger.level = unicorn_log_level
|
141
|
+
|
142
|
+
@http_server = ::Unicorn::HttpServer.new self,
|
143
|
+
listeners: socket_path.to_s,
|
144
|
+
logger: unicorn_logger
|
134
145
|
end # #initialize
|
135
146
|
|
136
147
|
|