lograge-sql 2.3.0 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lograge/active_record_log_subscriber.rb +3 -2
- data/lib/lograge/sql/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9111536f41dbfa19e93c81046f55a53e8dd4a25afcca73279b47b30475f75954
|
4
|
+
data.tar.gz: b43db3a11e0b3dbdfa7bb4f921d95e72ff78d57c3eb8e9f4bc534683f9df945d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0875e72c3883b97291b7a23f9f0f86389b68ff70a2ef6cbfdc8d7dfaae90da8bf2f17e3876e11c8aea105416bdc908519fda25326effacafad02fb46ee9c47c
|
7
|
+
data.tar.gz: f59abb9c350112083eeeb2dd1d28ee37d75295542ae441f0cdf275192560e334f1f7bf2f147e19d05036016ca174683bebc42b1a6bcd22a8eb095574e42d5338
|
@@ -15,13 +15,14 @@ module Lograge
|
|
15
15
|
|
16
16
|
private
|
17
17
|
|
18
|
-
# Add the event duration to the overall ActiveRecord::
|
18
|
+
# Add the event duration to the overall ActiveRecord::RuntimeRegistry.sql_runtime;
|
19
19
|
# note we don't do this when `keep_default_active_record_log` is enabled,
|
20
20
|
# as ActiveRecord is already adding the duration.
|
21
21
|
def increase_runtime_duration(event)
|
22
22
|
return if Rails.application.config.lograge_sql.keep_default_active_record_log
|
23
23
|
|
24
|
-
ActiveRecord::
|
24
|
+
ActiveRecord::RuntimeRegistry.sql_runtime ||= 0.0
|
25
|
+
ActiveRecord::RuntimeRegistry.sql_runtime += event.duration
|
25
26
|
end
|
26
27
|
|
27
28
|
def filter_query(event)
|
data/lib/lograge/sql/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lograge-sql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattia Giuffrida
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|