Skip to content

Commit 1fd37a2

Browse files
byrootjoelhawksley
authored andcommitted
Get rid of unused AbstractAdapter#log method
1 parent cea1012 commit 1fd37a2

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

activerecord/lib/active_record/connection_adapters/abstract_adapter.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,23 +1118,6 @@ def translate_exception_class(native_error, sql, binds)
11181118
active_record_error
11191119
end
11201120

1121-
def log(sql, name = "SQL", binds = [], type_casted_binds = [], async: false, &block) # :doc:
1122-
@instrumenter.instrument(
1123-
"sql.active_record",
1124-
sql: sql,
1125-
name: name,
1126-
binds: binds,
1127-
type_casted_binds: type_casted_binds,
1128-
async: async,
1129-
connection: self,
1130-
transaction: current_transaction.user_transaction.presence,
1131-
row_count: 0,
1132-
&block
1133-
)
1134-
rescue ActiveRecord::StatementInvalid => ex
1135-
raise ex.set_query(sql, binds)
1136-
end
1137-
11381121
def translate_exception(exception, message:, sql:, binds:)
11391122
# override in derived class
11401123
case exception

0 commit comments

Comments
 (0)