Method: WithConnection::ConnectionPool#release_connection_with_warning

Defined in:
lib/with_connection/connection_pool.rb

#release_connection_with_warningObject



46
47
48
49
# File 'lib/with_connection/connection_pool.rb', line 46

def release_connection_with_warning
  Rails.logger.warn "#{@name} connection was held by the request" if ! @disable_warning && has_connection?
  release_connection
end