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 +5 -0
- data/README.md +6 -0
- data/lib/serverengine/config_loader.rb +1 -1
- data/lib/serverengine/process_manager.rb +1 -1
- data/lib/serverengine/version.rb +1 -1
- metadata +3 -3
data/Changelog
CHANGED
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 =
|
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]
|
data/lib/serverengine/version.rb
CHANGED
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.
|
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-
|
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:
|
124
|
+
hash: 1992105160493860645
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
127
|
rubygems_version: 1.8.23
|