scout_agent 3.2.4 → 3.2.5
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.
- data/CHANGELOG +4 -0
- data/lib/scout_agent.rb +1 -1
- data/lib/scout_agent/server.rb +6 -0
- metadata +1 -1
data/CHANGELOG
CHANGED
data/lib/scout_agent.rb
CHANGED
@@ -92,7 +92,7 @@ module ScoutAgent
|
|
92
92
|
end
|
93
93
|
|
94
94
|
# The version of this agent.
|
95
|
-
VERSION = "3.2.
|
95
|
+
VERSION = "3.2.5".freeze
|
96
96
|
# A Pathname reference to the agent code directory, used in dynamic loading.
|
97
97
|
LIB_DIR = Pathname.new(File.dirname(__FILE__)) + agent_name
|
98
98
|
end
|
data/lib/scout_agent/server.rb
CHANGED
@@ -93,6 +93,12 @@ module ScoutAgent
|
|
93
93
|
"Could not send check-in to untrusted server." )
|
94
94
|
false # cannot trust server
|
95
95
|
rescue Exception => error # networking problem
|
96
|
+
# bypass for a RestClient bug
|
97
|
+
if error.is_a?(NoMethodError) and
|
98
|
+
error.backtrace and
|
99
|
+
error.backtrace.first.to_s =~ /\brest-client\b/
|
100
|
+
return true
|
101
|
+
end
|
96
102
|
log.warn("Check-in could not be sent: #{error.class}.")
|
97
103
|
false # we failed to send and will retry later
|
98
104
|
end
|