qb 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/qb/ipc/rpc/server.rb +14 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1adb8b34388a2f7459a5acff24162cb7c3959401
4
- data.tar.gz: 16174eacdd3a1b2bdd19084d674d2834284c7dfc
3
+ metadata.gz: 556578f69ec36abd7bdf33c79591648e0e4fa982
4
+ data.tar.gz: 6bed88da71d2d28c49cb85d8996dc4237f68f2e7
5
5
  SHA512:
6
- metadata.gz: a214e3865fd351527b73637e87e1a53358c88362c24966fa64ced70868241ae4db773bb35d62289dc726c7fe66e8dfa607be3620a6340fd4c04d5a6aa8e48c8b
7
- data.tar.gz: 99358c88001aa83cfdebdc9bc6b4af4fcc03468715c637f152cba56edb6e52b2fd73303a6198ffb02cd5883fd921b0904a30ac562ee5660de4a5aeacb0ecd6ad
6
+ metadata.gz: 2130c734af5f958b07c26f1c4b41f9a320440763c64e15c907648fffa6fccffd739e5bc196dfae33b330c3cdbad612475fc3973ed3a172531d3ecc4e145833b6
7
+ data.tar.gz: 95e309693ee49c7a6c2a62c99cdd7180c1f560346325d03adc4939eb987a75cad70457c1abd4a44284b3afd7b51dbe7c0eeb36154937a39a97c2532d2046ac09
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.4.5
@@ -126,11 +126,22 @@ class Server
126
126
  # Construction
127
127
  # ========================================================================
128
128
 
129
- # Instantiate a new `Server`.
130
- def initialize
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
- @http_server = ::Unicorn::HttpServer.new self, listeners: socket_path.to_s
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrser