Update warn message for MySQL fix
This commit is contained in:
parent
2cae81ff28
commit
9469666623
|
@ -20,7 +20,7 @@ if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter)
|
||||||
execute_without_retry(*args)
|
execute_without_retry(*args)
|
||||||
rescue ActiveRecord::StatementInvalid => e
|
rescue ActiveRecord::StatementInvalid => e
|
||||||
if e.message =~ /server has gone away/i
|
if e.message =~ /server has gone away/i
|
||||||
warn "Server timed out, retrying"
|
warn "Lost connection to MySQL server during query"
|
||||||
reconnect!
|
reconnect!
|
||||||
retry
|
retry
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue