angael 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Angael
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: angael
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.1
5
+ version: 0.1.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Paul Cortens