lograge-sql 2.3.0 → 2.3.1
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 +2 -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: d435c21129588de106963c13febc8cd259660430a9bfdb95894cd626bd658f6c
|
4
|
+
data.tar.gz: 5f942aaff99e144669f4b0b1c7d280fd11a800ab8f7f5ffc37197d891ae5c6b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 628036a6a1f5a00e27a67b6c056d883dc183a58ffddb01bf63f717790f77182221301dc7582cf570dd718efa6d73993cb1dec04c3a6ecf3b8b453a06a25d5061
|
7
|
+
data.tar.gz: 405f2fe165ffe7ddbe80816e9ca3b980886d25331986d8b9b0084ffb2b9b656c6f8327d0f03aac930e099333b2c1291f0e5c1f7d2ef1b3b5f8def06260e7f3c5
|
@@ -15,13 +15,13 @@ 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 += event.duration
|
25
25
|
end
|
26
26
|
|
27
27
|
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.1
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|