emissary 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 3
4
- :patch: 12
4
+ :patch: 13
@@ -120,6 +120,7 @@ module Emissary
120
120
  @connection.ping() unless @connection.nil?
121
121
  rescue ::Mysql::Error => e
122
122
  if e.message =~ /server has gone away/
123
+ ::Emissary.logger.notice "Agent::MySQL: MySQL server went away - reconnecting..."
123
124
  @connection = nil
124
125
  else
125
126
  raise e
@@ -131,7 +132,7 @@ module Emissary
131
132
 
132
133
  def disconnect
133
134
  unless not connected?
134
- puts "disconnecting.."
135
+ ::Emissary.logger.notice "Agent::MySQL: disconnecting from MySQL Server .."
135
136
  @connection.close
136
137
  @connection = nil
137
138
  end
@@ -202,13 +203,13 @@ module Emissary
202
203
 
203
204
  def spawn_lockwatch_thread!
204
205
  if @watcher.is_a?(Thread) and not @watcher.alive?
205
- puts "Watcher is dead - restarting"
206
+ ::Emissary.logger.notice "Agent::MySQL: Watcher is dead - restarting..."
206
207
  @watcher = nil
207
208
  end
208
209
 
209
210
  @watcher ||= Thread.new {
210
211
  begin
211
- puts "Entering Watcher Loop"
212
+ ::Emissary.logger.debug "Agent::MySQL: Entering Watcher Loop"
212
213
  Timeout.timeout(@timeout) do
213
214
  loop { break unless locked? }
214
215
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emissary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 12
10
- version: 1.3.12
9
+ - 13
10
+ version: 1.3.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Carl P. Corliss