Commit 53da820b authored by Stan Hu's avatar Stan Hu

Merge branch 'mrchrisw/mysql-connection-warn' into 'master'

Update warn message for MySQL fix

ZD: https://gitlab.zendesk.com/agent/tickets/39529

The current warn message is ambiguous. We should mention MySQL.

See merge request !6582
parents a2c528f2 94696666
...@@ -20,7 +20,7 @@ if defined?(ActiveRecord::ConnectionAdapters::Mysql2Adapter) ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment