Skip to content

Commit

Permalink
Update abstract_adapter patch
Browse files Browse the repository at this point in the history
  • Loading branch information
gussan committed Jan 1, 2017
1 parent abeeaab commit c0ca348
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -7,13 +7,14 @@ module AbstractAdapter
protected

# @note override for logging current shard name
def log(sql, name = "SQL", binds = [])
def log(sql, name = "SQL", binds = [], statement_name = nil)
@instrumenter.instrument(
"sql.active_record",
:sql => sql,
:name => name,
:connection_id => object_id,
:binds => binds,
:sql => sql,
:name => name,
:connection_id => object_id,
:statement_name => statement_name,
:binds => binds,
:turntable_shard_name => turntable_shard_name) { yield }
rescue Exception => e
message = "#{e.class.name}: #{e.message}: #{sql} : #{turntable_shard_name}"
Expand Down

0 comments on commit c0ca348

Please sign in to comment.