rookout 0.1.27 → 0.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rookout/com_ws/agent_com_ws.rb +10 -1
- data/lib/rookout/com_ws/websocket_client.rb +1 -2
- data/lib/rookout/commit.rb +1 -1
- data/lib/rookout/logger.rb +5 -0
- data/lib/rookout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3056007f4e19ad4f973d551922cc733ceb394515a2cebad17f8e6d1186b3ec79
|
4
|
+
data.tar.gz: ee4920718d14a9ac843134a6fe37afa3b5292274924a6ded0c76247d9605f695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a7ae5c046fa155ba5146ef30a2e381abb439ddd0936f56f3302258f72d7ae499bc18359cd8d5156434e809fc9704b93250e383c98ed3f09f89a80b56877c71
|
7
|
+
data.tar.gz: c71d7b41cb93686cae932edab6ce62c21d79e56b1368befe548db2046a5cf366c64d48112b07d6c09b49fdb0cb05949f3ffcfe15df90f763bb75e537aef886eb
|
@@ -134,6 +134,8 @@ module Rookout
|
|
134
134
|
backoff.after_disconnect
|
135
135
|
Logger.instance.debug "Reconnecting"
|
136
136
|
end
|
137
|
+
rescue Exception => e
|
138
|
+
Logger.instance.error "Unexpected error in connection_thread", e
|
137
139
|
end
|
138
140
|
# rubocop:enable Style/StderrPuts
|
139
141
|
|
@@ -157,7 +159,14 @@ module Rookout
|
|
157
159
|
].freeze
|
158
160
|
|
159
161
|
def connection_pump client
|
160
|
-
on_outgoing_exit = proc {
|
162
|
+
on_outgoing_exit = proc {
|
163
|
+
begin
|
164
|
+
client.close
|
165
|
+
rescue Exception => e
|
166
|
+
Logger.instance.error "Unexpected error exiting outgoing thread", e
|
167
|
+
end
|
168
|
+
}
|
169
|
+
|
161
170
|
@outgoing_thread = Thread.new { outgoing client, on_outgoing_exit }
|
162
171
|
@outgoing_thread.name = "rookout-outgoing-thread"
|
163
172
|
|
@@ -5,7 +5,6 @@ module Rookout
|
|
5
5
|
require "uri"
|
6
6
|
|
7
7
|
require_relative "../config"
|
8
|
-
require_relative "../logger"
|
9
8
|
require_relative "../exceptions"
|
10
9
|
|
11
10
|
class WebsocketClient
|
@@ -65,7 +64,7 @@ module Rookout
|
|
65
64
|
|
66
65
|
begin
|
67
66
|
@driver.close
|
68
|
-
rescue RuntimeError, Errno::EPIPE
|
67
|
+
rescue RuntimeError, Errno::EPIPE, OpenSSL::OpenSSLError
|
69
68
|
# Protocol close may fail if the connection is already closed
|
70
69
|
nil
|
71
70
|
end
|
data/lib/rookout/commit.rb
CHANGED
data/lib/rookout/logger.rb
CHANGED
@@ -99,6 +99,7 @@ module Rookout
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
|
+
# rubocop:disable Style/RescueStandardError
|
102
103
|
def log level, message, args
|
103
104
|
level_no = LOG_LEVELS.index level
|
104
105
|
if level_no.nil?
|
@@ -110,7 +111,11 @@ module Rookout
|
|
110
111
|
|
111
112
|
record = LogRecord.new level, message, args
|
112
113
|
@handlers.each { |handler| handler.call record }
|
114
|
+
rescue
|
115
|
+
# Log may never throw
|
116
|
+
nil
|
113
117
|
end
|
118
|
+
# rubocop:enable Style/RescueStandardError
|
114
119
|
|
115
120
|
def build_handlers
|
116
121
|
if Config.logger_log_to_stderr
|
data/lib/rookout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rookout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liran Haimovitch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: binding_of_caller
|