serverengine 1.5.6 → 1.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ 2013-10-31 version 1.5.7:
3
+
4
+ * Fixed :log parameter handling
5
+
6
+
2
7
  2013-10-20 version 1.5.6:
3
8
 
4
9
  * Fixed log rotation in worker_type=process mode [#9]
data/README.md CHANGED
@@ -137,6 +137,12 @@ se = ServerEngine.create(MyServer, MyWorker, {
137
137
  se.run
138
138
  ```
139
139
 
140
+ ServerEngine's default logger extends from Ruby's standard Logger library to:
141
+
142
+ * support multiprocess aware log rotation
143
+ * support reopening of log file
144
+ * support 'trace' level, which is lower level than 'debug'
145
+
140
146
  See also **Configuration** section bellow.
141
147
 
142
148
 
@@ -45,7 +45,7 @@ module ServerEngine
45
45
  unless logdev.is_a?(IO)
46
46
  # Here doesn't allow to change logdev to IO dynamically
47
47
  # because Server#start_io_logging_thread can't follow it.
48
- @logger.logdev = io
48
+ @logger.logdev = logdev
49
49
  end
50
50
  @logger.level = @config[:log_level] || 'debug'
51
51
  end
@@ -30,7 +30,7 @@ module ServerEngine
30
30
  @graceful_kill_signal = config[:graceful_kill_signal] || :TERM
31
31
  @immediate_kill_signal = config[:immediate_kill_signal] || :QUIT
32
32
 
33
- @auto_tick = config.fetch(:auto_tick, true)
33
+ @auto_tick = !!config.fetch(:auto_tick, true)
34
34
  @auto_tick_interval = config[:auto_tick_interval] || 1
35
35
 
36
36
  @enable_heartbeat = !!config[:enable_heartbeat]
@@ -1,3 +1,3 @@
1
1
  module ServerEngine
2
- VERSION = "1.5.6"
2
+ VERSION = "1.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverengine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.6
4
+ version: 1.5.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-21 00:00:00.000000000 Z
12
+ date: 2013-11-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sigdump
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: -2266789879425924886
124
+ hash: 1992105160493860645
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.23