We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5a03bd commit d301fe3Copy full SHA for d301fe3
lib/rails_semantic_logger/active_record/log_subscriber.rb
@@ -8,11 +8,11 @@ class << self
8
end
9
10
def self.runtime=(value)
11
- ::ActiveRecord::RuntimeRegistry.sql_runtime = value
+ ::ActiveRecord::RuntimeRegistry.stats.sql_runtime = value
12
13
14
def self.runtime
15
- ::ActiveRecord::RuntimeRegistry.sql_runtime ||= 0
+ ::ActiveRecord::RuntimeRegistry.stats.sql_runtime ||= 0
16
17
18
def self.reset_runtime
0 commit comments