angael 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/angael/manager.rb +6 -0
- data/lib/angael/version.rb +1 -1
- metadata +1 -1
data/lib/angael/manager.rb
CHANGED
@@ -59,12 +59,14 @@ module Angael
|
|
59
59
|
interrupted_handler
|
60
60
|
sigchld_handler
|
61
61
|
restart_worker_if_needed
|
62
|
+
flush_logger
|
62
63
|
sleep LOOP_SLEEP_SECONDS
|
63
64
|
end
|
64
65
|
else
|
65
66
|
loop do
|
66
67
|
interrupted_handler
|
67
68
|
sigchld_handler
|
69
|
+
flush_logger
|
68
70
|
sleep LOOP_SLEEP_SECONDS
|
69
71
|
end
|
70
72
|
end
|
@@ -155,5 +157,9 @@ module Angael
|
|
155
157
|
@seconds_until_restart_next_worker = @restart_after
|
156
158
|
end
|
157
159
|
end
|
160
|
+
|
161
|
+
def flush_logger
|
162
|
+
@logger.flush if @logger && @logger.respond_to?(:flush)
|
163
|
+
end
|
158
164
|
end
|
159
165
|
end
|
data/lib/angael/version.rb
CHANGED