mysql-pause-adapter-ext 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mysql-pause/adapter-ext.rb +4 -2
- metadata +1 -1
@@ -14,8 +14,10 @@ module ActiveRecord
|
|
14
14
|
rescue => e
|
15
15
|
raise(e) unless MysqlPause::Error.mysql_pause_error?(e)
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
if @logger
|
18
|
+
@logger.warn("handle mysql-pause error and reconnect: #{e.class.name}: #{e.message}")
|
19
|
+
end
|
20
|
+
|
19
21
|
reconnect!
|
20
22
|
retry
|
21
23
|
end
|